pybic.PlotLabels
- pybic.PlotLabels(fig, ax, strings=['x', 'y'], fsize=20, cbarNorth=False, im=None, cax=None, fweight='normal', tickweight='bold', cbarweight='none', grid=True, minorgrid=True, shrink=0.7, cbarfsize=None, forceGrid=False, cbarPad=0.05, minorgridColor=[0.9, 0.9, 0.9], extend='neither')[source]
General purpose plot labels.
- Parameters:
fig (
Figure) – Figure.ax (
Axes) – Axes.strings (list of str) – List of labels for x, y, (z, and colorbar) axes
fsize (float) – Label font size.
cbarNorth (bool) – Place colorbar above plot (to right if
False).im (
QuadMesh) – Image data from, e.g.,pcolormesh.cax (
Axes) – Colorbar axes.fweight (str) – Font weight
tickweight (str) – Tick label weight.
cbarweight (str) – Colorbar label weight.
grid (bool) – Show grids.
minorgrid (bool) – Show minor grid.
shrink (float) – Colorbar shrink fraction for 3D plots.
cbarfsize (float) – Colorbar font size.
forceGrid (bool) – Force grid.
cbarPad (float) – Colorbar padding fraction.
extend (str) – Extend ends of colorbar.
- Returns:
Colorbar axes.
- Return type: