anyplotlib.PlotMesh#

class anyplotlib.PlotMesh(data, x_edges=None, y_edges=None, units='')[source]#

Bases: Plot2D

2-D mesh plot panel created by Axes.pcolormesh().

Accepts cell edge arrays (length N+1 / M+1) rather than centre arrays, matches matplotlib’s pcolormesh convention. Only 'circles' and 'lines' markers are supported.

Parameters:
  • data (np.ndarray)

  • units (str)

set_data(data, x_edges=None, y_edges=None, units=None)[source]#

Replace the mesh data (and optionally the edge arrays).

Parameters:
Return type:

None