xyzpy.plot.plotter_bokeh¶
Attributes¶
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 |
Module Contents¶
- 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- _interactive¶
- 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
dsplot lines ofyas 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:
ILinePlotInteractive 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 aDatasetfirst.
- xyzpy.plot.plotter_bokeh.iscatter(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]¶
From
dsplot a scatter ofyagainstx, 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 aDatasetfirst.
- 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
dsplot variablezas a function ofxandyusing 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 aDatasetfirst.