Skip to content

Sienna-Platform/PowerGraphics.jl

Repository files navigation

PowerGraphics

Main - CI codecov Documentation Build PowerGraphics.jl Downloads

PowerGraphics.jl is a Julia package for plotting results from PowerSimulations.jl.

Installation

julia> ]
(v1.10) pkg> add PowerGraphics

Usage

PowerGraphics.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.

Development

Contributions to the development and enhancement of PowerGraphics is welcome. Please see CONTRIBUTING.md for code contribution guidelines.

License

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.

About

A package to generate visualizations from PowerSimulations.jl results.

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages