Bay-Delta SELFE Tools

plot_default_formats Module

Convenient routines to set up and to tweak matplotlib plots.


Set color cycles of Dark2 theme of globally. Just calling this function once before finalize a plot is enough to change the color cycles.

Returns :

brewer_colors: list :

list of the colors

plot_default_formats.set_dual_axes(ax1, ts)

Create a dual y-axis with unit information in the given time series. It coverts SI units to non-SI one.

plot_default_formats.set_elev_dual_axes(ax1, names=None)

Set dual axes for elevation.

Parameters :ax: matplotlib axes :

Set a dual y-axis for salt with a PSU y-axis

Parameters :

ax: axis :

a Matplotlib axes