API Reference#

GeoVista#

PyVistaによる地図描画とメッシュ解析。

Provides:
  1. An agnostic bridge to transform rectilinear, curvilinear and unstructured geospatial data to native geolocated PyVista mesh instances.

  2. Compliments PyVista with cartographic features for processing, projecting and rendering geolocated meshes.

  3. Support for interactive 3D visualization of geolocated meshes.

  4. Coordinate Reference System (CRS) support, with an awareness of Cartopy CRSs through the commonality of the Python interface to PROJ (PyPROJ) package.

ノート

Added in version 0.1.0.

Submodules#

属性#

__version__

The major.minor.patch version string.

Functions#

set_plot_theme(theme, /, *[, bootstrap])

Set plotting parameters to a predefined theme.

Package Contents#

geovista.set_plot_theme(theme, /, *, bootstrap=False)[ソース]#

Set plotting parameters to a predefined theme.

The enabled plot theme will be used by all plotters and rendering.

Requests to enable a plot theme will be ignored when the environment variable GEOVISTA_DISABLE_PLOT_THEME is set.

Note that the replaced theme is cached and may be restored with geovista.themes.restore_plot_theme().

Parameters:
themeTheme or str

The theme to apply, which may be either:

bootstrapbool, default=False

When True, theme configuration is skipped if the environment variable PYVISTA_PLOT_THEME is set. Otherwise, the provided theme will be enabled regardless of that environment variable. This behaviour allows a pre-defined PYVISTA_PLOT_THEME to take precedence.

Returns:
bool

True if the theme was successfully enabled, otherwise False.

Raises:
ValueError

When theme is an invalid dotted path specification or cannot be imported.

参考

geovista.themes.restore_plot_theme()

Reinstates the plot theme to the previous replaced theme.

pyvista.registered_themes()

The list of available registered themes.

pyvista.plotting.themes.Theme

Base class for all themes. Subclasses with the class property _default_name are discoverable by pyvista.

ノート

Added in version 0.6.0.

Examples

Set the default geovista theme.

>>> import geovista as gv
>>> gv.set_plot_theme("geovista")
True

Set the pyvista dark theme.

>>> gv.set_plot_theme("dark")
True

Load a theme from an importable package module specified as a dotted path.

>>> gv.set_plot_theme("geovista.themes:GeoVistaTheme")
True

Set the pyvista paraview theme.

>>> from pyvista import themes
>>> gv.set_plot_theme(themes.ParaViewTheme())
True
geovista.__version__ = 'unknown'#

The major.minor.patch version string.