queso_cluster.addon.style#

file:

queso_cluster/addon/style

lang:

python

synopsis:

author:

Sarah Riley <academic@sriley.dev>

Classes#

clusterColormap

Creates a colormap to be used with the cluster maps

mapMaker

A class to format maps in a consistent way.

Module Contents#

class clusterColormap(bounds, tolColorLabel='rainbow_PuRd')[source]#

Creates a colormap to be used with the cluster maps

Parameters:
  • nbounds (int) – the number of labels to use

  • tolColorLabel (str, optional) – the name of the TOL colormap to use

cbar_bounds()[source]#

Creates a list of uniform spaced tick locations

Returns:

  • actual_bounds (ndarray) – The edges of the bins to be used with mpl.colors.BoundaryNorm

  • bound_ticks (ndarray) – Tick locations for plt.colorbar

genColorPalette()[source]#

Creates a list of uniform spaced tick locations

Returns:

color_palette – The hexcodes for the colors to be used in the colormap

Return type:

list

cmap#
nbounds#
norm#
tickLabels#
tolColorLabel = 'rainbow_PuRd'#
class mapMaker(instrumentObj)[source]#

A class to format maps in a consistent way.

Parameters:
  • spaceInfo (dict) – dictionary containing number of pixels in each spatial dimension

  • deltas (dict) – dictinary containing the raster pixel scale as ‘pxlSlitWidth’ and the along slit pixel scale as ‘pxlAlongSlit’

bbox#
correct#
deltas#
extent#
flatten#
spaceInfo#
stepCadence#
unflatten#