Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 2.4 KB

PlotPackages.md

File metadata and controls

53 lines (42 loc) · 2.4 KB

Plot Packages

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:

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