ogstools.plot.vectorplots module#
- ogstools.plot.vectorplots.streamlines(mesh, ax, variable, projection=None, arrowsize=None, density=1.5, streamlinewidth=2.5)[source]#
Plot the vector streamlines on a matplotlib axis.
- Parameters:
mesh (
DataSet) – Mesh containing the vector variableax (
Axes) – Matplotlib axis to plot ontovariable (
Vector) – Vector variable to visualizeprojection (
int|None) – Index of flat dimension (e.g. 2 for z axis), gets automatically determined if not givendensity (
float) – density of streamlinesstreamlinewidth (
float) – base width of the streamlines
- Return type:
- ogstools.plot.vectorplots.quiver(mesh, ax, variable, projection=None, glyph_type='arrow', arrowsize=None, scale=0.03)[source]#
Plot arrows or lines corresponding to vectors on a matplotlib axis.
- Parameters:
mesh (
DataSet) – Mesh containing the vector variableax (
Axes) – Matplotlib axis to plot ontovariable (
Vector) – Vector variable to visualizeprojection (
int|None) – Index of flat dimension (e.g. 2 for z axis), gets automatically determined if not givenglyph_type (
Literal['arrow','line']) – Whether to plot arrows or lines.scale (
float) – scaling factor for lines / arrows
- Return type: