xtgeoviz
Plotting library for xtgeo objects
What it is and what it does
xtgeoviz is a thin plotting layer built on top of xtgeo and matplotlib, designed for visualizing subsurface and geospatial data common in energy and reservoir engineering. It wraps matplotlib to provide convenient functions for rendering xtgeo objects without requiring users to write low-level matplotlib code directly.
The package depends on PyYAML, matplotlib, numpy, scipy, and xtgeo. It is in beta (Development Status 4) and actively maintained. It requires Python 3.11 or later and is available as a pure Python wheel, making installation straightforward across common platforms.
Use it for:
- Quickly visualize subsurface surfaces loaded from xtgeo without writing matplotlib boilerplate
- Generate plots of reservoir maps and geological structures in energy workflows
- Explore and validate geospatial data during subsurface modeling and analysis tasks
- Integrate plotting into scientific Python pipelines for reservoir engineering work
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides plotting functions for xtgeo objects, enabling visualization of subsurface and geospatial data through matplotlib-backed rendering.
Yes, if you work with xtgeo objects and need straightforward plotting. Low install friction, active maintenance, and no known vulnerabilities support adoption. The copyleft license (LGPLv3) requires that any modifications or derivative works remain open-source; this is a non-issue for internal use but matters if you plan to embed or redistribute modified versions.
Install
xtgeoviz on PyPI
pip
pip install xtgeovizuv
uv add xtgeovizpoetry
poetry add xtgeovizInstalling xtgeoviz
Before you install
Low install friction with a pure Python wheel. Active maintenance with a recent release 44 days ago. Supports Python 3.11, 3.12, 3.13, and 3.14 across macOS, Windows, and Linux.
License in practice
Licensed under LGPLv3 (copyleft). Derivative works and modifications must be distributed under the same license; proprietary applications using this library must comply with copyleft obligations or obtain an alternative license.
Quickstart
pip install xtgeoviz
import xtgeoviz.plot as xtgplot
import xtgeo
surf = xtgeo.surface_from_file("somemap.gri")
xtgplot.quickplot(surf)
Requires Python 3.11 or later.
Verify before relying
- Specific plotting capabilities and supported xtgeo object types beyond the quickplot example
- Performance characteristics with large datasets or complex geometries
- Interactive vs. static plotting modes and customization depth
Package facts
| License | GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this… (full text in the JSON record) (copyleft) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — PyYAML, matplotlib, numpy, scipy, xtgeo |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 127,432/month — #11,744 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: xtgeoviz-0.3.2-py3-none-any.whl
Keywords: energy, subsurface, reservoir, scientific, engineering, maps, xtgeo
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
xtgeoXTGeo manipulates subsurface reservoir…
copyleft · top 15,000 on PyPI
plotbinPlotBin provides utilities to create and…
unclear · top 15,000 on PyPI
CartopyCartopy makes it easy to draw maps for data…
permissive · top 5,000 on PyPI
contextilyContextily retrieves tile-based map imagery…
permissive · top 15,000 on PyPI
splotsplot creates static and interactive…
permissive · top 15,000 on PyPI
leafmapLeafmap enables interactive geospatial mapping…
permissive · top 15,000 on PyPI
gstoolsGSTools provides geostatistical tools for…
copyleft · top 15,000 on PyPI
geemapGeemap provides interactive geospatial analysis…
permissive · top 15,000 on PyPI
pyvistaPyVista provides a NumPy-native API for 3D…
permissive · top 5,000 on PyPI
resfo-utilitiesresfo-utilities parses and processes output…
copyleft · top 15,000 on PyPI