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

  • G = fill

  • J = projection

  • R = region

  • W = pen

  • 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.