PowerGraphics

codecov

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

Installation

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

Usage

PowerGraphics.jl uses PowerSystems.jl and PowerSimulations.jl to handle the data and execution power system simulations.

using PowerGraphics
# where "res" is a PowerSimulations.SimulationResults object
gen = get_generation_data(res)
plot_pgdata(gen)

PowerGraphics.jl creates figures using a number of optional backends using Plots.jl. For interactive figures, it is recommended to use the PlotlyJS.jl backend, which requires the PlotlyJS.jl:

using Pkg
Pkg.add("PlotlyJS")

When using PowerGraphics.jl within a jupyter notebook, WebIO.jl is also required (*and depending on the local configuration of nbextensions, some additional steps may be required):

Pkg.add("WebIO")

An additional command (plotlyjs()) to startup the PlotlyJS backend from Plots is required:

using PowerGraphics
plotlyjs()
# where "res" is a PowerSimulations.SimulationResults object
plot_fuel(res)

Development

Contributions to the development and enahancement 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 Renewable Energy Laboratory (NREL)