|
4 | 4 | CurrentModule = SignalTables |
5 | 5 | ``` |
6 | 6 |
|
7 | | -The plot package `XXX` to be used can be defined by: |
| 7 | +Example to define the plot package to be used: |
8 | 8 |
|
9 | | -- `ENV["SignalTablesPlotPackage"] = XXX`\ |
10 | | - (e.g. in .julia/config/startup.jl file: `ENV["SignalTablesPlotPackage"] = "PyPlot"`), or |
11 | | -- by calling [`usePlotPackage`](@ref)(XXX) (e.g. `usePlotPackage("PyPlot")`). |
12 | | - |
13 | | -Supported values for `XXX`: |
14 | | - |
15 | | -- `"PyPlot"` ([PyPlot](https://github.com/JuliaPy/PyPlot.jl) plots with Matplotlib from Python), |
16 | | -- `"GLMakie"` ([GLMakie](https://github.com/JuliaPlots/GLMakie.jl) provides interactive plots in an OpenGL window), |
17 | | -- `"WGLMakie"` ([WGLMakie](https://github.com/JuliaPlots/WGLMakie.jl) provides interactive plots in a browser window), |
18 | | -- `"CairoMakie"` ([CairoMakie](https://github.com/JuliaPlots/CairoMakie.jl) provides static plots on file with publication quality). |
| 9 | +```julia |
| 10 | +using SignalTables |
| 11 | +usePlotPackage("PyPlot") # or ENV["SignalTablesPlotPackage"] = "PyPlot" |
| 12 | +``` |
19 | 13 |
|
20 | | -Furthermore, there is a dummy implementation included in SignalTables that is useful when performing tests with runtests.jl, |
21 | | -in order that no plot package needs to be loaded during the tests: |
| 14 | +The following plot packages are supported: |
22 | 15 |
|
| 16 | +- `"PyPlot"` ([PyPlot](https://github.com/JuliaPy/PyPlot.jl) plots with Matplotlib from Python; |
| 17 | + via [SignalTablesInterface_PyPlot.jl](https://github.com/ModiaSim/SignalTablesInterface_PyPlot.jl)), |
| 18 | +- `"GLMakie"` ([GLMakie](https://github.com/JuliaPlots/GLMakie.jl) provides interactive plots in an OpenGL window; |
| 19 | + via [SignalTablesInterface_GLMakie.jl](https://github.com/ModiaSim/SignalTablesInterface_GLMakie.jl)), |
| 20 | +- `"WGLMakie"` ([WGLMakie](https://github.com/JuliaPlots/WGLMakie.jl) provides interactive plots in a browser window; |
| 21 | + via [SignalTablesInterface_WGLMakie.jl](https://github.com/ModiaSim/SignalTablesInterface_WGLMakie.jl)), |
| 22 | +- `"CairoMakie"` ([CairoMakie](https://github.com/JuliaPlots/CairoMakie.jl) provides static plots on file with publication quality; |
| 23 | + via [SignalTablesInterface_CairoMakie.jl](https://github.com/ModiaSim/SignalTablesInterface_CairoMakie.jl)). |
23 | 24 | - `"SilentNoPlot"` (= all plot calls are silently ignored). |
24 | 25 |
|
25 | | - |
26 | 26 | Typically, runtests.jl is defined as: |
27 | 27 |
|
28 | 28 | ```julia |
|
0 commit comments