vispipe.plot_backend.MPL_Figure.contour#

MPL_Figure.contour(vals, mesh, bbox=None, fill=True, limits=None, levels=101, ax=None, **conkwargs)#

Calls ax.contour() or ax.contourf().

Parameters:
  • vals (ndarray) – 2d array of shape(ni,nj) coresponding to the mesh.

  • mesh (ndarray) – Array containing xv and yv arrays generated from a np.meshgrid().

  • bbox (tuple[float, float, float, float] | None) – typing.Iterable containing x0,y0,x1,y1 where point 0 is the bottem left and point 1 is the top right of the bounding box.

  • fill (bool) – If True, contourf is called. If False, contour is called.

  • limits (tuple[float, float] | None) – A list of the lower and upper values of the contour.

  • levels (int) – The number of countor levels that will be generated.

  • ax (Axes | None) – Axes to plot onto. If None self.gca() is called.

  • **conkwargs – Keyword arguments passed to ax.contour() or ax.contourf().

Return type:

QuadContourSet

Returns:

Gridded contour set.