API reference#

Plotting#

plot(obj, *[, aspect, cbar, coords, ...])

Plot a Scipp object.

slicer(obj, *[, keep, autoscale, coords, ...])

Plot a multi-dimensional object by slicing one or more of the dimensions.

superplot(obj[, keep])

Plot a multi-dimensional object as a one-dimensional line, slicing all but one dimension.

inspector(obj[, dim, operation, orientation])

Inspector takes in a three-dimensional input and applies a reduction operation ('sum' by default) along one of the dimensions specified by dim.

scatter(obj, *[, x, y, size, figsize, norm, ...])

Make a two-dimensional scatter plot.

scatter3d(obj, *[, x, y, z, pos, figsize, ...])

Make a three-dimensional scatter plot.

xyplot(x, y, **kwargs)

Make a one-dimensional plot of one variable y as a function of another x.

Core#

core.Node(func, *parents, **kwparents)

A node that can have parent and children nodes, to create a graph.

core.View(*nodes)

A (typically graphical) representation of the data.

core.node(func)

Create a Node from a callable.

core.widget_node(widget)

Create a node from a widget.

core.show_graph(entry, **kwargs)

Display the connected nodes and views as a graph.

Graphics#

graphics.Camera([position, look_at, near, far])

Camera configuration for three-dimensional plots.

graphics.ColorMapper([canvas, cbar, cmap, ...])

A class that handles conversion between data values and RGBA colors.

graphics.figure1d(*args[, style])

Create a figure to represent one-dimensional data from one or more graph node(s).

graphics.figure2d(*args[, style])

Create a figure to represent two-dimensional data from a graph node.

graphics.figure3d(*args[, style])

Create a figure to represent three-dimensional data from a graph node.

graphics.imagefigure(*args, **kwargs)

Create a figure to represent two-dimensional data from one or more graph node(s).

graphics.ImageView(*nodes[, cmap, ...])

ImageView that makes a visual representation of two-dimensional data.

graphics.linefigure(*args, **kwargs)

Create a figure to represent one-dimensional data from one or more graph node(s).

graphics.LineView(*nodes[, norm, vmin, ...])

View that makes a visual representation of one-dimensional data.

graphics.scatterfigure(*args, **kwargs)

Create a figure to represent scatter data from one or more graph node(s).

graphics.ScatterView(*nodes[, x, y, size, ...])

graphics.scatter3dfigure(*args, **kwargs)

Create a figure to represent three-dimensional data from one or more graph node(s).

graphics.Scatter3dView(*nodes[, x, y, z, ...])

View that makes a visual representation of three-dimensional scatter data.

graphics.tiled(nrows, ncols, **kwargs)

A tiled figure.

Widgets and tools#

widgets.Box(**kwargs)

Container widget that accepts a list of items.

widgets.Checkboxes(entries[, description, value])

Widget providing a list of checkboxes, along with a button to toggle them all.

widgets.HBar(**kwargs)

Horizontal bar container.

widgets.RangeSliceWidget(da, dims)

Widgets containing a slider for each of the requested dimensions.

widgets.SliceWidget(da, dims)

Widgets containing a slider for each of the requested dimensions.

widgets.VBar(**kwargs)

Vertical bar container.

widgets.tools.AxesTool

Toggle RGB axes helper visibility tool

widgets.tools.ButtonTool([callback])

Create a button with a callback that is called when the button is clicked.

widgets.tools.CameraTool

Tool for changing the position of the camera in a 3d scene.

widgets.tools.ColorTool(text, color)

Tool for saving lines and controlling their color.

widgets.tools.HomeTool

Return home tool.

widgets.tools.LogNormTool

Toggle normalization scale tool.

widgets.tools.LogxTool

Toggle horizontal axis scale tool.

widgets.tools.LogyTool

Toggle vertical axis scale tool.

widgets.tools.MultiToggleTool(callback, options)

Create toggle buttons with a callback that is called when one of the buttons is toggled.

widgets.tools.OutlineTool

Toggle outline visibility tool

widgets.tools.PanZoomTool(callback[, value])

Tool to control the panning and zooming actions on a Matplotlib figure.

widgets.tools.SaveTool

Save figure to png tool.

widgets.tools.ToggleTool(callback, **kwargs)

Create a toggle button with a callback that is called when the button is toggled.

widgets.drawing.DrawingTool(figure, ...[, value])

Interface between Plopp and Mpltoolbox.

widgets.drawing.PointsTool

Tool to add point markers onto a figure.

widgets.clip3d.Clip3dTool(limits, direction, ...)

A tool that provides a slider to extract a slab of points in a three-dimensional scatter plot, and add it to the scene as an opaque cut.

widgets.clip3d.ClippingPlanes(fig)

A widget to make clipping planes for spatial cutting (see Clip3dTool) to make spatial cuts in the X, Y, and Z directions on a three-dimensional scatter plot.

widgets.cut3d.Cut3dTool(view, limits, direction)

A tool that provides a slider to extract a plane of points in a three-dimensional scatter plot, and add it to the scene as an opaque cut.

widgets.cut3d.TriCutTool(fig)

A collection of Cut3dTool to make spatial cuts in the X, Y, and Z directions on a three-dimensional scatter plot.

Backends#

Other#

show()

A function to display all the currently opened figures (note that this only applies to the figures created via the Matplotlib backend).