xyzpy.plot.plotter_bokeh
#
Module Contents#
Classes#
Interactive raw data multi-line plot. |
|
Functions#
Cache this so it doesn't happen over and over again. |
|
|
|
|
Decorate a plotting function to plot a grid of values. |
|
From |
|
Auto version of |
|
From |
|
Auto version of |
|
From |
|
Auto version of |
Attributes#
- xyzpy.plot.plotter_bokeh._init_bokeh_nb()[source]#
Cache this so it doesn’t happen over and over again.
- class xyzpy.plot.plotter_bokeh.PlotterBokeh(ds, x, y, z=None, **kwargs)[source]#
Bases:
xyzpy.plot.core.Plotter
- xyzpy.plot.plotter_bokeh.bokeh_multi_plot(fn)[source]#
Decorate a plotting function to plot a grid of values.
- class xyzpy.plot.plotter_bokeh.ILinePlot(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]#
- xyzpy.plot.plotter_bokeh.ilineplot(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]#
From
ds
plot lines ofy
as a function ofx
, optionally for varyingz
. Interactive,- Parameters:
ds (xarray.Dataset) – Dataset to plot from.
x (str) – Dimension to plot along the x-axis.
y (str or tuple[str]) – Variable(s) to plot along the y-axis. If tuple, plot each of the variables - instead of
z
.z (str, optional) – Dimension to plot into the page.
y_err (str, optional) – Variable to plot as y-error.
x_err (str, optional) – Variable to plot as x-error.
row (str, optional) – Dimension to vary over as a function of rows.
col (str, optional) – Dimension to vary over as a function of columns.
plot_opts – See
xyzpy.plot.core.PLOTTER_DEFAULTS
.
- class xyzpy.plot.plotter_bokeh.AutoILinePlot(x, y_z, **lineplot_opts)[source]#
Bases:
ILinePlot
Interactive raw data multi-line plot.
- xyzpy.plot.plotter_bokeh.auto_ilineplot(x, y_z, **lineplot_opts)[source]#
Auto version of
ilineplot()
that accepts array arguments by converting them to aDataset
first.
- xyzpy.plot.plotter_bokeh.iscatter(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]#
From
ds
plot a scatter ofy
againstx
, optionally for varyingz
. Interactive.- Parameters:
ds (xarray.Dataset) – Dataset to plot from.
x (str) – Quantity to plot along the x-axis.
y (str or tuple[str]) – Quantity(s) to plot along the y-axis. If tuple, plot each of the variables - instead of
z
.z (str, optional) – Dimension to plot into the page.
y_err (str, optional) – Variable to plot as y-error.
x_err (str, optional) – Variable to plot as x-error.
row (str, optional) – Dimension to vary over as a function of rows.
col (str, optional) – Dimension to vary over as a function of columns.
plot_opts – See
xyzpy.plot.core.PLOTTER_DEFAULTS
.
- xyzpy.plot.plotter_bokeh.auto_iscatter(x, y_z, **iscatter_opts)[source]#
Auto version of
iscatter()
that accepts array arguments by converting them to aDataset
first.
- xyzpy.plot.plotter_bokeh._HEATMAP_ALT_DEFAULTS = (('legend', False), ('colorbar', True), ('colormap', 'inferno'), ('gridlines', False),...#
- xyzpy.plot.plotter_bokeh.iheatmap(ds, x, y, z, **kwargs)[source]#
From
ds
plot variablez
as a function ofx
andy
using a 2D heatmap. Interactive,- Parameters:
ds (xarray.Dataset) – Dataset to plot from.
x (str) – Dimension to plot along the x-axis.
y (str) – Dimension to plot along the y-axis.
z (str, optional) – Variable to plot as colormap.
row (str, optional) – Dimension to vary over as a function of rows.
col (str, optional) – Dimension to vary over as a function of columns.
plot_opts – See
xyzpy.plot.core.PLOTTER_DEFAULTS
.
- xyzpy.plot.plotter_bokeh.auto_iheatmap(x, **iheatmap_opts)[source]#
Auto version of
iheatmap()
that accepts array arguments by converting them to aDataset
first.