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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.axes (
toyplot.coordinates.Cartesian
) – A new set of 2D axes that fill the canvas.mark (
toyplot.mark.BarMagnitudes
ortoyplot.mark.BarBoundaries
) – The new bar mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.axes (
toyplot.coordinates.Cartesian
) – A new set of 2D axes that fill the canvas.mark (
toyplot.mark.FillBoundaries
ortoyplot.mark.FillMagnitudes
) – The new fill mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.axes (
toyplot.coordinates.Cartesian
) – A new set of 2D axes that fill the canvas.mark (
toyplot.mark.Graph
) – The new graph mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.mark (
toyplot.mark.Image
) – The new image mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.table (
toyplot.coordinates.Table
) – A new set of table axes that fill the canvas.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.axes (
toyplot.coordinates.Cartesian
) – A new set of 2D axes that fill the canvas.mark (
toyplot.mark.Plot
) – The new plot mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.axes (
toyplot.coordinates.Cartesian
) – A new set of 2D axes that fill the canvas.mark (
toyplot.mark.Point
) – The new scatterplot mark.
- 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()
, andtoyplot.canvas.Canvas
for parameter descriptions.- Returns:
canvas (
toyplot.canvas.Canvas
) – A new canvas object.table (
toyplot.coordinates.Table
) – A new set of table axes that fill the canvas.