pymem3dg.visual.getColorbar

pymem3dg.visual.getColorbar(fig, range, orientation='horizontal', label='', num_points=100)

Generate color map

Parameters:
  • fig (matplotlib.figure.Figure) – Figure object

  • range (tuple) – tuple with length = 2 that specify range of colormap

  • orientation (str, optional) – orientation of the colormap. Defaults to “horizontal”.

  • label (str, optional) – label of the colormap. Defaults to “”.

  • num_points (int, optional) – number of data point. Defaults to 100.

Returns:

returning Figure object

Return type:

matplotlib.figure.Figure