biocircuits.xyt_plot

biocircuits.xyt_plot(x, y, t, glyph='line', legend_names=None, legend_location='top_right', palette=None, glyph_kwargs={}, time_slider_title='time', **kwargs)

Create an interactive plot some the output of rd_solve().

Parameters:
  • x (1D Numpy array) – x-values for plot.

  • y (tuple of 2D Numpy arrays) – y-values for plot. y[i][j, k] is the y-value for curve i at time point j and position x[k].

  • t (Numpy array) – y-values for plot.

  • glyph (str, either "line" or "circle") – What kind of glyph to use in plot.

  • legend_names (list or None, default None) – Names for legend in plot.

  • legend_location (str, default 'top_right') – Position of legend using Bokeh’s specifications for legend position. Ignored if legend_names is None.

  • palette (List of colors default bokeh.palettes.d3['Category10'][10]) – Color palette to use for curves.

  • glyph_kwargs (dict) – Keyword arguments to be passed to the glyph renderer, e.g., p.line(**glyph_kwargs).

  • time_slider_title (str, default "time") – Title for the slider for time.

  • kwargs – All other kwargs are passed to bokeh.plotting.figure() in creating the figure.

Returns:

An interactive plot with a time slider.

Return type:

output