WISPO-POP / PowerPlots.jl

Functions plot PowerModels networks
BSD 3-Clause "New" or "Revised" License
22 stars 2 forks source link

Use enums for plot layers? #52

Open noahrhodes opened 3 years ago

noahrhodes commented 3 years ago

I don't know what I'm talking about, but this could make using SetField to change the plot easier

I saw an example in a julia video. Enums are symbols that resolve to a value:

:branch_layer => 1 :bus_layer =>3

then setfield could change the bus legend title with: @set plot.layer[:bus_layer]["color"]["title"]="Bus kV"