xtgeoviz.plot.xtmap module

Module for map plots of surfaces, using matplotlib.

class xtgeoviz.plot.xtmap.Map[source]

Bases: BasePlot

Class for plotting a map, using matplotlib.

The constructor method for a Map object.

property pagesize

Returns page size.

plot_surface(surf, minvalue=None, maxvalue=None, contourlevels=None, xlabelrotation=None, colormap=None, logarithmic=False)[source]

Input a surface and plot it.

plot_faults(fpoly, idname='POLY_ID', color='k', edgecolor='k', alpha=0.7, linewidth=0.8)[source]

Plot the faults.

Parameters:
  • fpoly (object) – A XTGeo Polygons object

  • idname (str) – Name of column which has the faults ID

  • color (c) – Fill color model c according to Matplotlib

  • edgecolor (c) – Edge color according to Matplotlib

  • alpha (float) – Degree of opacity

  • linewidth (float) – Line width

plot_polygons(fpoly, idname='POLY_ID', color='k', linewidth=0.8)[source]

Plot a polygons instance.

Parameters:
  • fpoly (object) – A XTGeo Polygons object

  • idname (str) – Name of column which has the faults ID

  • color (c) – Line color model c according to Matplotlib

  • linewidth (float) – Line width

plot_points(points)[source]

Plot a points set on the map.

This can be be useful e.g. for plotting the underlying point set that makes a gridded map.

Parameters:

points (Points) – A XTGeo Points object X Y VALUE

plot_wells(wells)[source]

Plot wells on the map.

Parameters:

wells (Wells) – A XTGeo Wells object (contains a number of Well instances).