gerg_plotting.modules.plotting#

Module Contents#

gerg_plotting.modules.plotting.colorbar(fig, divider, mappable, label, nrows=1, total_cbars=2) matplotlib.colorbar.Colorbar#

Create a colorbar with automatic positioning for multiple subplots.

Parameters#

figmatplotlib.figure.Figure

The figure object to add the colorbar to

dividermpl_toolkits.axes_grid1.axes_divider.AxesDivider

Divider object for positioning the colorbar

mappablematplotlib.cm.ScalarMappable

The mappable object to create the colorbar from

labelstr

Label for the colorbar

nrowsint, optional

Number of rows in the subplot grid, default is 1

total_cbarsint, optional

Total number of colorbars expected, default is 2

Returns#

matplotlib.colorbar.Colorbar

The created colorbar object

gerg_plotting.modules.plotting.get_turner_cmap() matplotlib.colors.ListedColormap#

Create a custom colormap for Turner angle visualization.

Creates a colormap with distinct regions for different Turner angle ranges: - Red (0-45°) - Yellow (45-135°) - Green (135-225°) - Blue (225-315°) - Red (315-360°)

Returns#

matplotlib.colors.ListedColormap

Custom colormap for Turner angle visualization with 256 colors