Plotting Base

PlotBase

MatplotlibMixin

class spatialtis.plotting.abc.MatplotlibMixin(**plot_options)[source]

Mixin for Matplotlib

fig

Matplotlib.Figure

Type

Union[matplotlib.figure.Figure, seaborn.matrix.ClusterGrid]

ax

Matplotlib.Subplots or Axes

Type

Union[matplotlib.axes._subplots.SubplotBase, matplotlib.axes._axes.Axes]

axes

Array of ax

Type

numpy.ndarray

save(path=None, **save_options)[source]

To save a plot

Parameters
  • path – The directory and file name to save the plot

  • **save_options – Pass to matplotlib’s savefig

BokehMixin

class spatialtis.plotting.abc.BokehMixin(**plot_options)[source]

Mixin for Bokeh

save(path=None)[source]

To save a plot

Better options is to save a html file and use screen capture to get a static image

Parameters

path – The directory and file name to save the plot

PyechartsMixin

class spatialtis.plotting.abc.PyechartsMixin(**plot_options)[source]

Mixin for Pyecharts

Parameters
  • theme – Please go to theme for details, (Default: “white”)

  • renderer – “canvas” or “svg”, (Default: “canvas”)

save(path=None, **save_options)[source]

To save a plot

Better options is to save a html file and use screen capture to get a static image

Parameters
  • path – The directory and file name to save the plot

  • **save_options – Pass to make_snapshot

render()[source]

To render a pyecharts plot