geolime.plotting.vario_plot

Classes:

Covariance(dim, angles, 0.0, 0.0], scales, …)

Enum(value)

Generic enumeration.

Data:

List

The central part of internal API.

Functions:

pairs_plot_2d(coords, index, projection)

Debug function that displays pairs of points on a 2D projection plane.

pairs_plot_3d(coords, index, title)

Debug function that displays pairs of points on a 3D space.

plot_semivariogram(variograms[, model, …])

Semivariogram plot

geolime.plotting.vario_plot.pairs_plot_2d(coords: numpy.ndarray, index: List[int], projection: enum.Enum)

Debug function that displays pairs of points on a 2D projection plane. Mostly for debugging purposes.

Parameters
  • coords (np.ndarray) – cartesian coordinates

  • index (List[int]) – list of pairs

  • projection (Enum) – projection plane to be considered (‘xy’, ‘xz’ or yz)

Returns

A 2D matplotlib plot

Return type

None

geolime.plotting.vario_plot.pairs_plot_3d(coords: numpy.ndarray, index: List[int], title: str)

Debug function that displays pairs of points on a 3D space. Mostly for debugging purposes.

Parameters
  • coords (np.ndarray) – cartesian coordinates

  • index (List[int]) – list of pairs

  • title (str) – a title string to be displayed on the plot

Returns

A 3D matplotlib plot

Return type

None

geolime.plotting.vario_plot.plot_semivariogram(variograms: List, model: geolime.geostats.models.covariance.Covariance = None, display_npairs: bool = False, method: enum.Enum = 'semivariogram', nlag: int = 100, border_ratio: float = 1)

Semivariogram plot

Parameters
  • variograms (List[pd.DataFrame]) – A pandas DataFrame with at least ‘vario’ column in it

  • model (Covariance) – optional, covariance model to be applied

  • display_npairs (bool) – Display barplot with number of pairs if True

  • method (Enum) – “covariogram” or “semivariogram”

  • nlag (int) – Number of lag samples

  • border_ratio (float) – Border extent ratio

Returns

A matplotlib plot

Return type

None