xyzpy.plot.plotter_bokeh#

Functions

auto_iheatmap(x, **iheatmap_opts)

Auto version of iheatmap() that accepts array arguments by converting them to a Dataset first.

auto_ilineplot(x, y_z, **lineplot_opts)

Auto version of ilineplot() that accepts array arguments by converting them to a Dataset first.

auto_iscatter(x, y_z, **iscatter_opts)

Auto version of iscatter() that accepts array arguments by converting them to a Dataset first.

bokeh_multi_plot(fn)

Decorate a plotting function to plot a grid of values.

bshow(figs[, nb, interactive])

iheatmap(ds, x, y, z, **kwargs)

From ds plot variable z as a function of x and y using a 2D heatmap.

ilineplot(ds, x, y[, z, y_err, x_err])

From ds plot lines of y as a function of x, optionally for varying z.

iscatter(ds, x, y[, z, y_err, x_err])

From ds plot a scatter of y against x, optionally for varying z.

Classes

AutoIHeatMap(x, **iheatmap_opts)

AutoILinePlot(x, y_z, **lineplot_opts)

Interactive raw data multi-line plot.

AutoIScatter(x, y_z, **iscatter_opts)

IHeatMap(ds, x, y, z, **kwargs)

ILinePlot(ds, x, y[, z, y_err, x_err])

IScatter(ds, x, y[, z])

PlotterBokeh(ds, x, y[, z])

class xyzpy.plot.plotter_bokeh.AutoILinePlot(x, y_z, **lineplot_opts)[source]#

Interactive raw data multi-line plot.

xyzpy.plot.plotter_bokeh.auto_iheatmap(x, **iheatmap_opts)[source]#

Auto version of iheatmap() that accepts array arguments by converting them to a Dataset first.

xyzpy.plot.plotter_bokeh.auto_ilineplot(x, y_z, **lineplot_opts)[source]#

Auto version of ilineplot() that accepts array arguments by converting them to a Dataset first.

xyzpy.plot.plotter_bokeh.auto_iscatter(x, y_z, **iscatter_opts)[source]#

Auto version of iscatter() that accepts array arguments by converting them to a Dataset first.

xyzpy.plot.plotter_bokeh.bokeh_multi_plot(fn)[source]#

Decorate a plotting function to plot a grid of values.

xyzpy.plot.plotter_bokeh.bshow(figs, nb=True, interactive=False, **kwargs)[source]#
xyzpy.plot.plotter_bokeh.iheatmap(ds, x, y, z, **kwargs)[source]#

From ds plot variable z as a function of x and y 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.ilineplot(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]#

From ds plot lines of y as a function of x, optionally for varying z. 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.

xyzpy.plot.plotter_bokeh.iscatter(ds, x, y, z=None, y_err=None, x_err=None, **kwargs)[source]#

From ds plot a scatter of y against x, optionally for varying z. 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.