MCPcopy Create free account
hub / github.com/danjgale/surfplot / _set_table

Function _set_table

surfplot/surf.py:95–99  ·  view source on GitHub ↗
(cm, lut)

Source from the content-addressed store, hash-verified

93
94
95def _set_table(cm, lut):
96 cm = plt.get_cmap(cm)
97 nvals = lut['numberOfTableValues']
98 table = cm(np.linspace(0, 1, nvals)) * 255
99 return table.astype(np.uint8)
100
101
102def build_plotter(surfs, layout, array_name=None, view=None, color_bar=None,

Callers 1

build_plotterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected