discretize.View.CurviView

class discretize.View.CurviView[source]

Bases: object

Provides viewing functions for CurvilinearMesh

This class is inherited by CurvilinearMesh

Methods

plotGrid(self[, ax, nodes, faces, centers, …]) Plot the nodal, cell-centered and staggered grids for 1, 2 and 3 dimensions.
plotImage  

Attributes

Methods

CurviView.plotGrid(self, ax=None, nodes=False, faces=False, centers=False, edges=False, lines=True, showIt=False, **kwargs)[source]

Plot the nodal, cell-centered and staggered grids for 1, 2 and 3 dimensions.

import discretize
X, Y = discretize.utils.exampleLrmGrid([3, 3], 'rotate')
M = discretize.CurvilinearMesh([X, Y])
M.plotGrid(showIt=True)

(Source code, png, hires.png, pdf)

../../_images/discretize-View-CurviView-1.png
CurviView.plotImage(self, I, ax=None, showIt=False, grid=False, clim=None)[source]