PowerGraphics.jl is a Julia package for plotting results from PowerSimulations.jl.
julia> ]
(v1.10) pkg> add PowerGraphicsPowerGraphics.jl uses PowerSystems.jl and PowerSimulations.jl to handle the data and execution power system simulations.
PowerGraphics.jl supports two plotting backends, both loaded via Julia
package extensions. Load the backend you want before (or alongside)
PowerGraphics:
- CairoMakie (recommended): static,
publication-quality plots —
using CairoMakie - PlotlyLight:
lightweight interactive HTML plots —
using PlotlyLight
using CairoMakie # or `using PlotlyLight`
using PowerGraphics
using PowerAnalytics
# where `res` is a PowerSimulations.SimulationResults object
gen = get_generation_data(res)
plot_powerdata(gen) # CairoMakie
# plot_powerdata_plotly(gen) # PlotlyLight (`_plotly`-suffixed API)If neither backend is loaded, PowerGraphics.jl prints a warning at load
time and the plotting functions throw an ArgumentError when called.
Contributions to the development and enhancement of PowerGraphics is welcome. Please see CONTRIBUTING.md for code contribution guidelines.
PowerGraphics is released under a BSD license. PowerGraphics has been developed as part of the Scalable Integrated Infrastructure Planning (SIIP) initiative at the U.S. Department of Energy's National Laboratory of the Rockies (NLR) formerly known as NREL.