discretize.View.CurviView

class discretize.View.CurviView[source]

Bases: object

Provides viewing functions for CurvilinearMesh

This class is inherited by CurvilinearMesh

Methods

plotGrid([ax, nodes, faces, centers, edges, …])

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

plotImage

Examples using discretize.View.CurviView

Attributes

Methods

CurviView.plotGrid(ax=None, nodes=False, faces=False, centers=False, edges=False, lines=True, show_it=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(show_it=True)

(Source code, png, pdf)

../../_images/discretize-View-CurviView-1.png
CurviView.plotImage(v, v_type='CC', grid=False, view='real', ax=None, clim=None, show_it=False, pcolor_opts=None, grid_opts=None, range_x=None, range_y=None, **kwargs)[source]