xtgeoviz.plot.grid3d_slice module

Module for 3D Grid slice plots, using matplotlib.

class xtgeoviz.plot.grid3d_slice.Grid3DSlice[source]

Bases: BasePlot

Class for plotting a row, a column, or a layer, using matplotlib.

Construct an instance for a Grid3DSlice object.

plot_gridslice(grid, prop=None, mode='layer', minvalue=None, maxvalue=None, colormap=None, linecolor='black', index=1, window=None, activeonly=True)[source]

Plot a row slice, column slice or layer slice of a grid.

Parameters:
  • grid (Grid) – The XTGeo grid object

  • prop (GridProperty, optional) – The XTGeo grid property object

  • mode (str) – Choose between ‘column’, ‘row’, ‘layer’ (default)

  • minvalue (float) – Minimum level color scale (default: from data)

  • maxvalue (float) – Maximum level color scale (default: from data)

  • index (int) – Index to plot e.g layer number if layer slice (first=1)

  • colormap – Color map to use for cells, e.g. ‘rainbow’ or an rmscol file

  • linecolor (str or tuple) – Color of grid lines (black/white/grey or a tuple with 4 numbers on valid matplotlib format)

  • activeonly (bool) – If only use active cells

  • window (str) – Some window