method_mix_over_time#

class method_mix_over_time(**kwargs)[source]#

Bases: Analyzer

Tracks the number of women on each method available for each time step

Attributes

auto_state_list

List of "automatic" states with boolean type (ss.BoolState) that were added via define_states()

dt

Get the current module timestep

now

Shortcut to self.t.now()

state_dict

Return a flat dictionary (objdict) of all states

state_list

Return a flat list of all states (ss.Arr objects)

ti

Get the current module timestep

timevec

Shortcut 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