forked from ecbtln/dynamics_sim
-
Notifications
You must be signed in to change notification settings - Fork 3
Graph
Andrew F edited this page Nov 10, 2017
·
5 revisions
There are several graphing options. Some may be predetermined by the type of simulation being run.
graph is an optional keyword for all simulations, it takes the form of a dictionary.
For example: s.simulate(num_gens=50000, graph=dict(lineArray=[(1, 2, 0, 5)], options=['meanStratLine', 'area']))
would run the simulation with area=True and lineArray=[(1, 2, 0, 5)]
Key values, with example values:
- lineArray=[(1, 2, 0, 5), (0, 100, 2, 0)], draws lines using the tuples as end points (xStart, xEnd, yStart, yEnd)
- normalize=5, if a value is inputted the axis values will be normalized to that value.
- options=['area'], these are turned on when included inside options. Possible values are: area, meanStratLine, modeStratLine, payoffLine, noLegend, smallFont (18), largeFont (36).