Subplot#

Subplot#

Constructor#

Subplot(parent, camera, controller, canvas)

Subplot class.

Properties#

Subplot.axes

Axes object

Subplot.background_color

background colors, (top left, top right, bottom right, bottom left)

Subplot.camera

camera used to view the scene

Subplot.canvas

Canvas associated to the plot area

Subplot.controller

controller used to control the camera

Subplot.docks

The docks of this plot area.

Subplot.frame

Frame that the subplot lives in

Subplot.graphics

Graphics in the plot area.

Subplot.legends

Legends in the plot area.

Subplot.name

Subplot name

Subplot.objects

Subplot.parent

A parent if relevant

Subplot.renderer

Renderer associated to the plot area

Subplot.scene

The Scene where Graphics lie in this plot area

Subplot.selectors

Selectors in the plot area.

Subplot.title

subplot title

Subplot.toolbar

show/hide toolbar

Subplot.viewport

The rectangular area of the renderer associated to this plot area

Methods#

Subplot.add_animations(*funcs[, pre_render, ...])

Add function(s) that are called on every render cycle.

Subplot.add_graphic(graphic[, center])

Add a Graphic to the scene

Subplot.add_image(data[, vmin, vmax, cmap, ...])

Create an Image Graphic

Subplot.add_line(data[, thickness, colors, ...])

Create a line Graphic, 2d or 3d

Subplot.add_line_collection(data[, ...])

Create a collection of LineGraphic

Subplot.add_line_stack(data[, thickness, ...])

Create a stack of LineGraphic that are separated along the "x" or "y" axis.

Subplot.add_scatter(data[, colors, ...])

Create a Scatter Graphic, 2d or 3d

Subplot.add_text(text[, font_size, ...])

Create a text Graphic

Subplot.auto_scale(*[, maintain_aspect, zoom])

Auto-scale the camera w.r.t to the scene

Subplot.center_graphic(graphic[, zoom])

Center the camera w.r.t.

Subplot.center_scene(*[, zoom])

Auto-center the scene, does not scale.

Subplot.clear()

Clear the Plot or Subplot.

Subplot.delete_graphic(graphic)

Delete the graphic, garbage collects and frees GPU VRAM.

Subplot.get_figure([obj])

Get Figure instance that contains this plot area

Subplot.insert_graphic(graphic[, center, ...])

Insert graphic into scene at given position index in stored graphics.

Subplot.map_screen_to_world(pos)

Map screen position to world position

Subplot.remove_animation(func)

Removes the passed animation function from both pre and post render.

Subplot.remove_graphic(graphic)

Remove a Graphic from the scene.