dynamo.pl.plot_separatrix
- dynamo.pl.plot_separatrix(vecfld, x_range, y_range, t, noise=1e-06, lw=3, vecfld_dict=None, background=None, save_show_or_return='return', save_kwargs={}, ax=None)[source]
Plot separatrix on phase portrait.
- Parameters:
vecfld (
VectorField2D
) – An instance of the VectorField2D class which presumably has fixed points computed and stored.x_range (array_like, shape (2,)) – Range of values for x-axis.
y_range (array_like, shape (2,)) –
t (array_like) – Time points for trajectory.
noise (float) – A small noise added to steady states for drawing the separatrix.
lw (float, (default: 2)) – The line width of the trajectory.
background (str or None (default: None)) – The background color of the plot.
save_show_or_return ({‘show’, ‘save’, ‘return’} (default: return)) – Whether to save, show or return the figure.
save_kwargs (dict (default: {})) – A dictionary that will passed to the save_fig function. By default it is an empty dictionary and the save_fig function will use the {“path”: None, “prefix”: ‘plot_separatrix’, “dpi”: None, “ext”: ‘pdf’, “transparent”: True, “close”: True, “verbose”: True} as its parameters. Otherwise you can provide a dictionary that properly modify those keys according to your needs.
ax (Matplotlib Axis instance) – Axis on which to make the plot
from (code adapted) –