You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# select rows for the given bus names, default to all buses.
if!isempty(bus_names)
generator_names =names(plot_data)
bus_map =bus_mapping(system)
bus_names =String.(bus_names)
@assertissubset(bus_names, [bus_map[gen] for gen in generator_names])
generator_names = [gen for gen in generator_names ifin(bus_map[gen], bus_names)]
select!(plot_data, generator_names)
end
label -->reduce(hcat, names(plot_data))
yguide -->"Commitment"
legend -->:outertopright
seriestype -->:line
xrotation -->45
title -->"Thermal Standard Commit stacked over the hours"
# now stack the matrix to get the cumulative values over all fuel types
data =cumsum(Matrix(plot_data); dims=2)
for i in Base.axes(data, 2)
@seriesbegin
fillrange := i >1? data[:, i -1] :0
times, data[:, i]
end
end
end
It is need to be generic and then move it to GridAnalysis.jl/src/plot (currently it is stored in the RTS example folder).
The text was updated successfully, but these errors were encountered:
andrewrosemberg
changed the title
Make all plots generic, move them to GridAnalysis' utils and then change them to the recipes format.
Make all plots generic, move them to GridAnalysis' utils and then change them to the RecipesBase format.
Jul 7, 2021
andrewrosemberg
changed the title
Make all plots generic, move them to GridAnalysis' utils and then change them to the RecipesBase format.
Make all plots generic and move them to GridAnalysis' utils.
Aug 17, 2021
The plot
plot_thermal_commit_type_stack
wasn't developed generically (i.e., it won't work for every example).GridAnalysis.jl/examples/RTS/utils.jl
Lines 833 to 901 in ae0139d
It is need to be generic and then move it to
GridAnalysis.jl/src/plot
(currently it is stored in the RTS example folder).The text was updated successfully, but these errors were encountered: