ImguiFigure#

ImguiFigure#

Constructor#

ImguiFigure([shape, cameras, ...])

A grid of subplots.

Properties#

ImguiFigure.cameras

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

ImguiFigure.canvas

The canvas this Figure is drawn onto

ImguiFigure.controllers

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

ImguiFigure.guis

GUI windows added to the Figure

ImguiFigure.imgui_renderer

imgui renderer

ImguiFigure.names

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

ImguiFigure.renderer

The renderer that renders this Figure

ImguiFigure.shape

[n_rows, n_cols]

Methods#

ImguiFigure.add_animations(*funcs[, ...])

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

ImguiFigure.add_gui(gui)

Add a GUI to the Figure.

ImguiFigure.clear()

Clear all Subplots

ImguiFigure.close()

ImguiFigure.export(uri, **kwargs)

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

ImguiFigure.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.

ImguiFigure.open_popup(name, pos, **kwargs)

Open a registered popup

ImguiFigure.register_popup(popup)

Register a popup class.

ImguiFigure.remove_animation(func)

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

ImguiFigure.render([draw])

ImguiFigure.show([autoscale, ...])

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

ImguiFigure.start_render()

start render cycle