API Reference#
GeoVista#
PyVistaによる地図描画とメッシュ解析。
- Provides:
An agnostic bridge to transform rectilinear, curvilinear and unstructured geospatial data to native geolocated PyVista mesh instances.
Compliments PyVista with cartographic features for processing, projecting and rendering geolocated meshes.
Support for interactive 3D visualization of geolocated meshes.
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#
属性#
The |
Functions#
|
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_THEMEis set.Note that the replaced theme is cached and may be restored with
geovista.themes.restore_plot_theme().- Parameters:
- theme
Themeorstr The theme to apply, which may be either:
The string name of a registered theme. See
pyvista.registered_themes()for the available pyvista built-in and third-party entry-point group themes.A string
package.module:ClassNamedotted path to an importablepyvista.plotting.themes.Themesubclass.A
pyvista.plotting.themes.Themesubclass instance.
- bootstrap
bool, default=False When
True, theme configuration is skipped if the environment variablePYVISTA_PLOT_THEMEis set. Otherwise, the provided theme will be enabled regardless of that environment variable. This behaviour allows a pre-definedPYVISTA_PLOT_THEMEto take precedence.
- theme
- Returns:
boolTrueif the theme was successfully enabled, otherwiseFalse.
- Raises:
ValueErrorWhen 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.ThemeBase class for all themes. Subclasses with the class property
_default_nameare discoverable by pyvista.
ノート
Added in version 0.6.0.
Examples
Set the default
geovistatheme.>>> 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.patchversion string.