turicreate.SArray.show

SArray.show(self, title='__TURI_DEFAULT_LABEL', xlabel='__TURI_DEFAULT_LABEL', ylabel='__TURI_DEFAULT_LABEL')

Visualize 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:
None

Notes

  • The plot will render either inline in a Jupyter Notebook, in a web browser, or in a native GUI window, depending on the value provided in turicreate.visualization.set_target (defaults to ‘auto’).

Examples

Suppose ‘sa’ is an SArray, we can view it using:

>>> sa.show()

To override the default plot title and axis labels:

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