pyfli.plot_style#
plot_style.py#
Shared line/marker color palette and outside-axes legend placement for the
plotting functions in pyfli.analysis and pyfli.data_vnp.
Every categorical palette in those two packages is built from dark_palette() (or is DARK_PALETTE itself), so retheming every plot that uses one means editing VMAX/SMIN (or a call’s base= seaborn palette name) here rather than touching each plotting function.
Functions
|
Return n_colors dark, mutually distinguishable colors derived from a seaborn base palette (any name/list accepted by seaborn.color_palette). |
|
Cap an RGB(A) color's brightness and floor its saturation so it reads as dark. |
|
Draw ax's legend outside the axes box (to the right, by default) instead of overlapping the plotted data. |
- darken_color(color, vmax=VMAX, smin=SMIN)[source]#
Cap an RGB(A) color’s brightness and floor its saturation so it reads as dark.
- dark_palette(n_colors, base='colorblind', vmax=VMAX, smin=SMIN)[source]#
Return n_colors dark, mutually distinguishable colors derived from a seaborn base palette (any name/list accepted by seaborn.color_palette).