pyvista#

pyvista#

This module is used to provide 3D shows for grids and models modules using Pyvista. These functions are used as class methods to provide direct accessibility to 3D visualizations using show() method.

Functions

add_desc(pl, label, D, fdir, boundary)

Add a description to a pyvista plotter

add_grid_labels(pl, grid, label, opacity, ...)

Add labels to a grid

add_ruler(pl, mesh)

Add a ruler to a pyvista plotter

add_title(pl, title)

Add a title to a pyvista plotter

add_wells(pl, model)

Add wells to a pyvista plotter.

align_camera(pl[, cdir, azimuth, elevation, ...])

Align the camera for a pyvista plotter.

decide_widget(static, notebook)

Decide to add widget or not.

get_annotations(values)

Get

get_cbar_dict([prop, n_colors, fmt])

Get color bar dictionary for a pyvista plotter.

get_cdir(grid)

Get camera direction.

get_colormap(cmap, gamma, n_colors)

Get colormap for a pyvista plotter from plt.cm

get_grid_plotter(grid, label, boundary, ...)

get_limits_fmt(values)

Get values limits and format.

get_model_plotter(model, prop, label, ...)

get_model_values(model, prop, boundary)

get_text_locs(n, hloc, vloc, space)

Returns text locations for a pyvista plotter.

get_window_size([resolution])

Get window size in pixels

save_gif(model[, prop, label, boundary, ...])

Saves pyvista show as gif

set_background_color(color)

set_mode([mode])

Set dark/light mode.

set_plotter_backend(static)

Set backend for a pyvista plotter.

set_plotter_config(pl[, static, notebook])

Set the configuration for a pyvista plotter.

set_text_color(color)

show_grid(grid[, label, boundary, corners, ...])

Shows pyvista grid.

show_model(model[, prop, label, boundary, ...])

Show pyvista plotter


Comments 💬#

Feel free to make a comment, ask a question, or share your opinion about this specific content. Please keep in mind the Commenting Guidelines ⚖.