stochrare.io.plot

Plotting routines

This module contains several functions for making quick plots.

stochrare.io.plot.trajectory_plot1d(*args, **kwargs)

Plot 1D trajectories.

Parameters:

*args (variable length argument list) – trajs: tuple (t, x) or (t, x, kwargs_dict)

Keyword Arguments:
 
  • fig (matplotlig.figure.Figure) – Figure object to use for the plot. Create one if not provided.
  • ax (matplotlig.axes.Axes) – Axes object to use for the plot. Create one if not provided.
  • **kwargs – Other keyword arguments forwarded to matplotlib.pyplot.axes.
Returns:

fig, ax – The figure.

Return type:

matplotlib.figure.Figure, matplotlib.axes.Axes

stochrare.io.plot.pdf_plot1d(*args, legend=True, **kwargs)

Plot 1D PDFs.

Parameters:

*args (variable length argument list) – PDFs: tuple (X, P) or (X, P, kwargs_dict)

Keyword Arguments:
 
  • potential (ndarray 2-tuple) – X, V where V is the value of the potential at the sample points X. Default (None, None).
  • fig (matplotlig.figure.Figure) – Figure object to use for the plot. Create one if not provided.
  • ax (matplotlig.axes.Axes) – Axes object to use for the plot. Create one if not provided.
  • legend (bool) – Add legend (default True).
  • **kwargs – Other keyword arguments forwarded to matplotlib.pyplot.axes.
Returns:

fig, ax – The figure.

Return type:

matplotlib.figure.Figure, matplotlib.axes.Axes

stochrare.io.plot.returntime_plot(*args)

Make return time plot: amplitude a as a function of the return time r(a)

Parameters:*args (variable length argument list) – Pairs of the form (a, r(a))
Returns:fig, ax – The figure.
Return type:matplotlib.figure.Figure, matplotlib.axes.Axes

Functions

ensemble_plot1d_box(*args, **kwargs) Plot an ensemble of 1D trajectories in a 3D box.
pdf_plot1d(*args[, legend]) Plot 1D PDFs.
returntime_plot(*args) Make return time plot: amplitude a as a function of the return time r(a)
trajectory_plot1d(*args, **kwargs) Plot 1D trajectories.