class Energy2dPlot

class deeptime.plots.Energy2dPlot(ax, contour, colorbar=None)

The result of a plot_energy2d() call. Instances of this class can be unpacked like a tuple:

>>> import numpy as np
>>> from deeptime.util import energy2d
>>> ax, contour, cbar = plot_energy2d(energy2d(*np.random.uniform(size=(100 ,2)).T))
Parameters:
  • ax (matplotlib.axes.Axes) – The axes that was plotted on.

  • contour (matplotlib.contour.QuadContourSet) – The surface contour. See matplotlib’s QuadContourSet.

  • colorbar (matplotlib.colorbar.Colorbar, optional, default=None) – If a colorbar was drawn, it is referenced here.

See also

plot_energy2d