set_norm#

cherab.lhd.tools.visualization.set_norm(mode: Literal['scalar', 'log', 'centered', 'symlog', 'asinh'], vmin: float, vmax: float, linear_width: float | None = None) NormalizeSource#

Set variouse Normalize object.

Parameters:
mode{“scalar”, “log”, “centered”, “symlog”, “asinh”}

which scale to adapt to the colormap.

vminfloat

Minimum value of the profile.

vmaxfloat

Maximum value of the profile.

linear_widthfloat, optional

Linear width of asinh/symlog norm, by default None. If None, automatically set to two digit below the absolute value.

Returns:
Normalize

Normalize object corresponding to the mode.