Figure#

Figure#

Constructor#

Figure([shape, cameras, controller_types, ...])

A grid of subplots.

Properties#

Figure.cameras

cameras, read-only array, access individual subplots to change a camera

Figure.canvas

The canvas this Figure is drawn onto

Figure.controllers

controllers, read-only array, access individual subplots to change a controller

Figure.names

subplot names, read-only array, access individual subplots to change a name

Figure.renderer

The renderer that renders this Figure

Figure.shape

[n_rows, n_cols]

Methods#

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

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

Figure.clear()

Clear all Subplots

Figure.close()

Figure.export(uri, **kwargs)

Use imageio for writing the current Figure to a file, or return a byte string.

Figure.get_pygfx_render_area(*args)

Fet rect for the portion of the canvas that the pygfx renderer draws to, i.e. non-imgui, part of canvas.

Figure.open_popup(*args, **kwargs)

Figure.remove_animation(func)

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

Figure.render([draw])

Figure.show([autoscale, maintain_aspect, ...])

Begins the rendering event loop and shows the Figure, returns the canvas

Figure.start_render()

start render cycle