pybic.PlotRHS

pybic.PlotRHS(x, y, ax, r_col='gray', ylab='', ylim=[], fsize=20, alph=1.0, lw=2)[source]

Add plot and right-hand side (RHS) label to existing plot.

Parameters:
  • x (ndarray) – X data.

  • y (ndarray) – Y data.

  • ax (Axes) – Axes to plot on.

  • r_col (str or list) – Data/label color.

  • ylab (str) – Y axis label.

  • ylim (list of float) – Y axis limits.

  • fsize (float) – Font size.

  • alph (float) – Alpha (transparency) parameter.

  • lw (float) – Linewidth.

Returns:

Twinned axes.

Return type:

Axes