toyplot module

Provides the top-level Convenience API, which allows you to create many plots using a single compact statement.

exception toyplot.DeprecationWarning[source]

Bases: Warning

Used with warnings.warn() to mark deprecated API.

toyplot.bars(a, b=None, c=None, along='x', baseline='stacked', color=None, filename=None, height=None, hyperlink=None, label=None, margin=50, opacity=1.0, padding=10, show=True, style=None, title=None, width=None, xlabel=None, xmax=None, xmin=None, xscale='linear', xshow=True, ylabel=None, ymax=None, ymin=None, yscale='linear', yshow=True)[source]

Convenience function for creating a bar plot in a single call.

See toyplot.coordinates.Cartesian.bars(), toyplot.canvas.Canvas.cartesian(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.fill(a, b=None, c=None, along='x', baseline=None, color=None, filename=None, height=None, label=None, margin=50, opacity=1.0, padding=10, show=True, style=None, title=None, width=None, xlabel=None, xmax=None, xmin=None, xscale='linear', xshow=True, ylabel=None, ymax=None, ymin=None, yscale='linear', yshow=True)[source]

Convenience function for creating a fill plot in a single call.

See toyplot.coordinates.Cartesian.fill(), toyplot.canvas.Canvas.cartesian(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.graph(a, b=None, c=None, along='x', ecolor=None, eopacity=1.0, estyle=None, ewidth=1.0, height=None, hmarker=None, layout=None, margin=50, mmarker=None, mposition=0.5, olayout=None, padding=20, tmarker=None, varea=None, vcolor=None, vcoordinates=None, vlabel=None, vlshow=True, vlstyle=None, vmarker='o', vopacity=1.0, vsize=None, vstyle=None, vtitle=None, width=None)[source]

Convenience function for creating a graph plot in a single call.

See toyplot.coordinates.Cartesian.graph(), toyplot.canvas.Canvas.cartesian(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.image(data, height=None, margin=0, width=None)[source]

Convenience function for displaying an image in a single call.

See toyplot.canvas.Canvas.image(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.matrix(data, blabel=None, blocator=None, bshow=None, colorshow=False, filename=None, height=None, label=None, llabel=None, llocator=None, lshow=None, margin=50, rlabel=None, rlocator=None, rshow=None, step=1, tlabel=None, tlocator=None, tshow=None, width=None)[source]

Convenience function to create a matrix visualization in a single call.

See toyplot.canvas.Canvas.matrix(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.plot(a, b=None, along='x', area=None, aspect=None, color=None, filename=None, height=None, label=None, margin=50, marker=None, mfill=None, mlstyle=None, mopacity=1.0, mstyle=None, mtitle=None, opacity=1.0, padding=10, show=True, size=None, stroke_width=2.0, style=None, title=None, width=None, xlabel=None, xmax=None, xmin=None, xscale='linear', xshow=True, ylabel=None, ymax=None, ymin=None, yscale='linear', yshow=True)[source]

Convenience function for creating a line plot in a single call.

See toyplot.coordinates.Cartesian.plot(), toyplot.canvas.Canvas.cartesian(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.scatterplot(a, b=None, along='x', area=None, aspect=None, color=None, filename=None, height=None, hyperlink=None, label=None, margin=50, marker='o', mlstyle=None, mstyle=None, opacity=1.0, padding=10, show=True, size=None, title=None, width=None, xlabel=None, xmax=None, xmin=None, xscale='linear', xshow=True, ylabel=None, ymax=None, ymin=None, yscale='linear', yshow=True)[source]

Convenience function for creating a scatter plot in a single call.

See toyplot.coordinates.Cartesian.scatterplot(), toyplot.canvas.Canvas.cartesian(), and toyplot.canvas.Canvas for parameter descriptions.

Returns:

toyplot.table(data=None, brows=None, columns=None, filename=None, height=None, label=None, lcolumns=None, margin=50, rcolumns=None, rows=None, trows=None, width=None)[source]

Convenience function to create a table visualization in a single call.

See toyplot.canvas.Canvas.table(), and toyplot.canvas.Canvas for parameter descriptions.

Returns: