Bay-Delta SELFE Tools

plot_default_formats Module

Convenient routines to set up and to tweak matplotlib plots.

plot_default_formats.set_color_cycle_dark2()

Set color cycles of Dark2 theme of colorbrewer.org 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 :
plot_default_formats.set_salt_dual_axes(ax1)

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

Parameters :

ax: axis :

a Matplotlib axes