method_mix_over_time#
- class method_mix_over_time(**kwargs)[source]#
Bases:
AnalyzerTracks the number of women on each method available for each time step
Attributes
auto_state_listList of "automatic" states with boolean type (ss.BoolState) that were added via define_states()
dtGet the current module timestep
nowShortcut to self.t.now()
state_dictReturn a flat dictionary (objdict) of all states
state_listReturn a flat list of all states (ss.Arr objects)
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods
- plot(style=None, share=False, methods=None, stacked=False)[source]#
Plot method mix over time
- Parameters:
style (str) – plotting style
share (bool) – if True, plot share (%) instead of absolute numbers
methods (list) – list of method names to plot; if None, plots all methods
stacked (bool) – if True, create a stacked area plot