PowerGraphics.jl
PowerGraphics.jl is a Julia package for plotting results from PowerSimulations.jl.
Backends
PowerGraphics.jl relies on Plots.jl to enable plotting via different backends. Currently, two backends are supported:
- GR (default): creates static plots - run the
gr()
command to load - PlotlyJS: creates interactive plots - run the
plotlyjs()
command to load
Making Figures
Each of the plot
* functions exported by PowerGraphics will create a plot via the specified backend (see above). Some control on the appearance of those figures is available with the following key word arguments passed to the plot_
* command.
Arguments to control figure visibility, colors, and display
set_display::Bool = true
: set to false to prevent the plots from displayingsave::String = "file_path"
: set a file path to save the plotsformat::String = "png"
: set a different format for saving a PlotlyJS plotseriescolor::Array
: Set different colors for the plotstitle::String = "Title"
: Set a title for the plots
Arguments to control figure type and layout
stack::Bool = true
: stack plot tracesbar::Bool
: create bar plotnofill::Bool
: force empty area fillstair::Bool
: Make a stair plot instead of a stack plot
Arguments to control data used for plotting
slacks::Bool = true
: display slack variablesload::Bool = true
: display load linecurtailment::Bool = true
: To plot the curtailment in the stack plotgenerator_mapping_file
= "file_path" : file path to yaml definig generator category by fuel and primemovervariables::Union{Nothing, Vector{Symbol}}
= nothing : specific variables to plot
Contributors
- Clayton Barrows