CurrentModule = SignalTables
Example to define the plot package to be used:
using SignalTables
usePlotPackage("PyPlot") # or ENV["SignalTablesPlotPackage"] = "PyPlot"
The following plot packages are supported:
"PyPlot"
(PyPlot plots with Matplotlib from Python; via SignalTablesInterface_PyPlot.jl),"GLMakie"
(GLMakie provides interactive plots in an OpenGL window; via SignalTablesInterface_GLMakie.jl),"WGLMakie"
(WGLMakie provides interactive plots in a browser window; via SignalTablesInterface_WGLMakie.jl),"CairoMakie"
(CairoMakie provides static plots on file with publication quality; via SignalTablesInterface_CairoMakie.jl)."SilentNoPlot"
(= all plot calls are silently ignored).
Typically, runtests.jl is defined as:
using SignalTables
usePlotPackage("SilentNoPlot") # Define Plot Package (previously defined one is put on a stack)
include("include_all.jl") # Include all tests that use a plot package
usePreviousPlotPackage() # Use previously defined Plot package
The following functions are provided to define/inquire the current plot package.
!!! note
SignalTables.jl exports all symbols of this table.
Modia.jl reexports all symbols.
Plot package functions | Description |
---|---|
@usingPlotPackage |
Expands into using PlotPackage_<PlotPackageName> |
usePlotPackage |
Define the plot package to be used. |
usePreviousPlotPackage |
Define the previously defined plot package to be used. |
currentPlotPackage |
Return name defined with usePlotPackage |
@usingPlotPackage
usePlotPackage
usePreviousPlotPackage
currentPlotPackage