Skip to content

Commit

Permalink
API: Remove xtgeo.plot
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Aug 8, 2024
1 parent 3b44a9c commit d8a7330
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 2,788 deletions.
24 changes: 0 additions & 24 deletions docs/apireference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -265,27 +265,3 @@ MetaDataWell
.. autoclass:: xtgeo.MetaDataWell

.. autoclasstoc::

Plot (to be deprecated)
^^^^^^^^^^^^^^^^^^^^^^^

XSection
""""""""

.. autoclass:: xtgeo.plot.XSection

.. autoclasstoc::

Map
"""

.. autoclass:: xtgeo.plot.Map

.. autoclasstoc::

Grid3DSlice
"""""""""""

.. autoclass:: xtgeo.plot.Grid3DSlice

.. autoclasstoc::
18 changes: 0 additions & 18 deletions src/xtgeo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,6 @@ def _xprint(msg):
except ImportError:
ROXAR = False

if platform.system() == "Linux" and not ROXAR:
_display = os.environ.get("DISPLAY", "")
_hostname = os.environ.get("HOSTNAME", "")
_host = os.environ.get("HOST", "")

_dhost = _hostname + _host + _display
_lsf_job = "LSB_JOBID" in os.environ

if _display == "" or "grid" in _dhost or "lgc" in _dhost or _lsf_job:
_xprint("")
_xprint("=" * 79)
_xprint(
"XTGeo info: No display found or a batch (e.g. ERT) server. "
"Using non-interactive Agg backend for matplotlib"
)
_xprint("=" * 79)
os.environ["MPLBACKEND"] = "Agg"

try:
from xtgeo.common.version import __version__, version
except ImportError:
Expand Down
20 changes: 0 additions & 20 deletions src/xtgeo/plot/__init__.py

This file was deleted.

Loading

0 comments on commit d8a7330

Please sign in to comment.