fastplotlib.ui.ImguiWindow#

class ImguiWindow(update_call=None)[source]#

An imgui window drawn within a Figure. Subclass and implement update() to draw imgui elements, or pass a callable as update_call (this is what the add_imgui_window() decorator does). A bare ImguiWindow() does neither and draws only what is appended to it with append_imgui_window().

Windows are not added directly, use Figure.add_imgui_window() or Subplot.add_imgui_window() which provide the host and placement, i.e. location, size, window flags, etc., via _fpl_add_hook().

Parameters:

update_call (callable) – a callable that draws imgui elements, used instead of update() when decorating, see add_imgui_window

Examples#

ImGUI with ImageWidget

ImGUI with ImageWidget

ImGUI Basics

ImGUI Basics

ImGUI Legend

ImGUI Legend

ImGUI Legend with Markers

ImGUI Legend with Markers

ImGUI menu bar

ImGUI menu bar

ImGUI Header GUI

ImGUI Header GUI

Sine and Cosine functions

Sine and Cosine functions

Volume modes

Volume modes

Volume share buffers

Volume share buffers