NREL-Sienna / PowerGraphics.jl

A package to generate visualizations from PowerSimulations.jl results. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab.

Home Page:https://www.nrel.gov/analysis/sienna.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add kwarg options for scaling PG data

claytonpbarrows opened this issue · comments

Currently, the y axis scale/label is determined automatically based on the base_power and the plot data. This results in some weird labels (e.g. MW x 100.0) for data that's usually [0.0:1.0].

  • The most basic improvement would be to provide a kwarg to scale the plot data so that a user can override the current functionality with something like y_label = "GW", scaling_factor = 10.0
  • It also wouldn't be that hard to simply scale the plot data by base power, detect the max, and automatically set the label to the appropriate unit (KW, MW, GW ...).