PLOT_STORAGE(MD)
PLOT_STORAGE(MD, IDX)
PLOT_STORAGE(MD, IDX, '<option1_name>', '<option1_value', ...)
PLOT_STORAGE(MD, IDX, OPT)
PLOT_STORAGE(MD, IDX, OPT, '<option1_name>', '<option1_value', ...)
H = PLOT_STORAGE(MD, ...)
IDX is the storage unit index. If IDX is a vector, it sums them first,
if empty, it includes all storage units in MD. Options can be
specified as an OPT struct or as individual pairs of 'name' and 'value'
arguments. The possible options include the following, where the default
is shown in parenthesis:
'saveit' (false) flag to indicate whether to create PDF file
'saveall' (false) flag to indicate whether to create individual
PDF files for each element of IDX, as well as
aggregate, when IDX is a vector (or empty)
'savepath' ('') path to directory to save files in
'savename' ('stored-energy-%s.pdf') name of PDF file
%s is optional placeholder for storage unit index
'separation' (0.8) %% separation of beginning/end of period (0-1)
0 = beginning & end of period t, staircase (dispatches are
vertical lines at t)
0.5 = evenly separated (both dispatch and transitions visible)
1 = beginning of t aligned with end of t-1, smooth,
(transitions are vertical displacements at t+/-0.5)
'sort_tol' (1e-6) round to nearest sort_tol for sorting
'size_factor' (1) to scale font/marker sizes in case you want to
do sub-plots or something
'show_grid' (true) vertical lines to divide periods
'show_expected_initial' (true)
'show_expected_final' (true)
'show_adjusted_dispatches' (true)
'show_dispatches' (false)
Returns handle to current figure window.