fipy.viewers.matplotlibViewer.matplotlib2DContourViewer¶
Classes
  | 
Displays a contour plot of a 2D CellVariable object.  | 
- class fipy.viewers.matplotlibViewer.matplotlib2DContourViewer.Matplotlib2DContourViewer(vars, title=None, limits={}, cmap=None, colorbar='vertical', axes=None, number=None, levels=None, figaspect='auto', **kwlimits)¶
 Bases:
AbstractMatplotlib2DViewerDisplays a contour plot of a 2D CellVariable object.
The Matplotlib2DContourViewer plots a 2D CellVariable using Matplotlib.
Creates a Matplotlib2DContourViewer.
- Parameters:
 vars (
CellVariable) – Variable to displaytitle (
str, optional) – displayed at the top of the Viewer windowlimits (
dict, optional) – a (deprecated) alternative to limit keyword argumentsxmin (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.xmax (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.ymin (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.ymax (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.datamin (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.datamax (
float, optional) – displayed range of data. Any limit set to a (default) value of None will autoscale.cmap (
Colormap, optional) – the Colormap. Defaults to matplotlib.cm.jetcolorbar (
bool, optional) – plot a color bar in specified orientation if not Noneaxes (
Axes, optional) – if not None, vars will be plotted into this Matplotlib Axes objectnumber (
int, optional) – Determines the number and positions of the contour lines / regions. (deprecated, use levels=).levels (
intor array_like, optional) – Determines the number and positions of the contour lines / regions. If an int n, tries to automatically choose no more than n+1 “nice” contour levels over the range of vars. If array_like, draw contour lines at the specified levels. The values must be in increasing order. E.g. to draw just the zero contour passlevels=[0].figaspect (
float) – desired aspect ratio of figure. If arg is a number, use that aspect ratio. If arg is auto, the aspect ratio will be determined from the Variable’s mesh.
- property axes¶
 The Matplotlib
Axes.
- property cmap¶
 The Matplotlib
Colormap.
- property colorbar¶
 The Matplotlib
Colorbar.
- property fig¶
 The Matplotlib
Figure.
- property id¶
 The Matplotlib
Figurenumber.
- property levels¶
 The number of automatically-chosen contours or their values.
- plot(filename=None)¶
 Update the display of the viewed variables.
- Parameters:
 filename (
str) – If not None, the name of a file to save the image into.
- plotMesh(filename=None)¶
 Display a representation of the mesh
- Parameters:
 filename (
str) – If not None, the name of a file to save the image into.
- setLimits(limits={}, **kwlimits)¶
 Update the limits.
- Parameters:
 limits (
dict, optional) – a (deprecated) alternative to limit keyword argumentsxmin (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.xmax (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.ymin (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.ymax (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.zmin (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.zmax (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.datamin (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.datamax (
float, optional) – displayed range of data. A 1D Viewer will only use xmin and xmax, a 2D viewer will also use ymin and ymax, and so on. All viewers will use datamin and datamax. Any limit set to a (default) value of None will autoscale.
        FiPy