turicreate.SArray.plot — Turi Create API 6.4.1 documentation (original) (raw)

SArray. plot(title='__TURI_DEFAULT_LABEL', xlabel='__TURI_DEFAULT_LABEL', ylabel='__TURI_DEFAULT_LABEL')

Create a Plot object representing the SArray.

Parameters: title : str The plot title to show for the resulting visualization. If the title is None, the title will be omitted. xlabel : str The X axis label to show for the resulting visualization. If the xlabel is None, the X axis label will be omitted. ylabel : str The Y axis label to show for the resulting visualization. If the ylabel is None, the Y axis label will be omitted.
Returns: out : Plot A :class: Plot object that is the visualization of the SArray.

Examples

Suppose ‘sa’ is an SArray, we can create a plot of it using:

To override the default plot title and axis labels:

plt = sa.plot(title="My Plot Title", xlabel="My X Axis", ylabel="My Y Axis")

We can then visualize the plot using: