Registry / devops / xtgeoviz

xtgeoviz

JSON →
library0.3.1pypypiunverified

xtgeoviz is a plotting library for xtgeo objects, providing convenient visualization of 3D geological surfaces, grids, and well data. Current version 0.3.1, released on 2025-06-02. Active development with monthly releases.

pip install xtgeoviz
INSTALL
IMPORT
SIG · XTGEOVIZ
X
xtgeoviz
devopspythonv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plot_surface
from xtgeoviz.plot import plot_surface
from xtgeoviz.surface import plot_surface

Basic usage: load an xtgeo surface and plot it with xtgeoviz.

import xtgeo import os from xtgeoviz.surface import plot_surface # Load a surface (replace with your own file or xtgeo.RegularSurface object) surf = xtgeo.surface_from_file('my_surface.gri') plot_surface(surf, title='My Surface Plot')
Debug
Known issues
breakingxtgeoviz 0.3.0 dropped support for Python 3.10 and earlier. Requires Python >=3.11.
fix
Upgrade Python to 3.11 or later, or pin xtgeoviz <0.3.0 if stuck on older Python.
affects: >=0.3.0
gotchaPlot functions modify the xtgeo object in-place? No, but they require a valid Matplotlib backend. If you get an error about missing backend, set MPLBACKEND environment variable or use matplotlib.use('Agg') before importing xtgeoviz.
fix
export MPLBACKEND='Agg' in environment or add 'import matplotlib; matplotlib.use("Agg")' before importing xtgeoviz
affects: all
deprecatedThe function 'plot_surface_3d' is deprecated in 0.3.0 and removed in 0.3.1. Use 'plot_surface' with argument 'perspective=True' instead.
fix
Replace 'plot_surface_3d(surf)' with 'plot_surface(surf, perspective=True)'
affects: <=0.3.0
Upgrade
Version history
0.3.1latest on PyPI · released Apr 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Resources
xtgeoviz — pip install xtgeoviz · libregistry