colormap_pyqtgraph

Module Contents

Functions

Attributes

sequence
matplotlib_colormap_to_pg_colormap(colormap_name, n_ticks=16)[source]
cmapToColormap(cmap, nTicks=16)[source]

Converts a Matplotlib cmap to pyqtgraphs colormaps. No dependency on matplotlib. Author: Sebastian Hoefer

Parameters:
  • cmap – Cmap object. Imported from matplotlib.cm.
  • nTicks – Number of ticks to create when dict of functions is used. Otherwise unused.
Returns: