ogstools.meshplotlib package#
meshplotlib utilities for simple access.
- ogstools.meshplotlib.plot(meshes, property)[source]#
Plot the property field of meshes with default settings.
The resulting figure adheres to the configurations in meshplotlib.setup. For 2D, the whole domain, for 3D a set of slices is displayed.
- Parameters:
meshes (list[UnstructuredGrid] | ndarray | UnstructuredGrid) – Singular mesh of 2D numpy array of meshes
property (Property | str) – The property field to be visualized on all meshes
- Return type:
Figure
- ogstools.meshplotlib.plot_on_top(ax, surf, contour, scaling=1.0)[source]#
- Parameters:
ax (Axes) –
surf (DataSet) –
contour (Callable[[ndarray], ndarray]) –
scaling (float) –
- Return type:
None
- ogstools.meshplotlib.plot_contour(ax, mesh, style, lw, projection=2)[source]#
- Parameters:
ax (Axes) –
mesh (DataSet) –
style (str) –
lw (int) –
projection (int) –
- ogstools.meshplotlib.subplot(mesh, property, ax, levels=None)[source]#
Plot the property field of a mesh on a matplotlib.axis.
In 3D the mesh gets sliced according to slice_type and the origin in the PlotSetup in meshplotlib.setup. Custom levels and a colormap string can be provided.
- Parameters:
mesh (UnstructuredGrid) –
property (Property | str) –
ax (Axes) –
levels (ndarray | None) –
- Return type:
None
Submodules#
- ogstools.meshplotlib.animation module
- ogstools.meshplotlib.core module
- ogstools.meshplotlib.levels module
- ogstools.meshplotlib.plot_features module
- ogstools.meshplotlib.plot_setup module
PlotSetupPlotSetup.combined_colorbarPlotSetup.custom_cmapPlotSetup.cmap_dict_if_bilinearPlotSetup.cmap_dictPlotSetup.cmap_if_maskPlotSetup.default_cmapPlotSetup.dpiPlotSetup.fig_scalePlotSetup.ax_aspect_limitsPlotSetup.fig_aspect_limitsPlotSetup.invert_colorbarPlotSetup.layoutPlotSetup.lengthPlotSetup.material_namesPlotSetup.num_levelsPlotSetup.num_streamline_interp_ptsPlotSetup.__init__()PlotSetup.p_maxPlotSetup.p_minPlotSetup.rcParamsPlotSetup.show_element_edgesPlotSetup.title_centerPlotSetup.title_leftPlotSetup.title_rightPlotSetup.x_labelPlotSetup.y_labelPlotSetup.log_scaledPlotSetup.show_region_boundsPlotSetup.embedded_region_names_colorPlotSetup.cmap_str()PlotSetup.rcParams_scaledPlotSetup.from_dict()PlotSetup.reset()
- ogstools.meshplotlib.plot_setup_defaults module