pygmt.Figure.histogram

Figure.histogram(table, **kwargs)

Plots a histogram, and can read data from a file or list, array, or dataframe.

Full option list at https://docs.generic-mapping-tools.org/latest/histogram.html

Aliases:

  • A = horizontal

  • B = frame

  • C = cmap

  • D = annotation

  • F = center

  • G = fill

  • J = projection

  • JZ = zscale

  • L = extreme_values

  • N = normal_dist

  • Qr = cumulative

  • R = region

  • S = stairs

  • T = interval

  • U = logo

  • V = verbose

  • W = pen

  • X = xshift

  • Y = yshift

  • Z = type

  • p = perspective

Parameters
  • table (str, list, or 1d array) – A data file name, list, or 1d numpy array. This is a required argument.

  • projection (str) – Required if this is the first plot command. projcode[projparams/]width. Select map projection.

  • region (str or list) – Required if this is the first plot command. xmin/xmax/ymin/ymax[+r][+uunit]. Specify the region of interest.

  • frame (bool or str or list) – Set map boundary frame and axes attributes.