add_imgui_window#
- Subplot.add_imgui_window(window=None, *, location=None, size=None, title=None, window_flags=None)[source]#
Add an imgui window confined to this subplot. Can also be used as a decorator, see the
Figure.add_imgui_windowexamples.Edge windows (“left”, “right”, “top”, “bottom”) reserve space outboard of the subplot dock on that edge. The “toolbar” location replaces the subplot toolbar. An existing window at a
locationis replaced.- Parameters:
window (ImguiWindow | ImguiContainer, optional) – an
ImguiWindowinstance, such as aLegend, or anImguiContainersuch as anImguiColorbar, which is given a window of its own. Omit when decorating.location (str, "left" | "right" | "top" | "bottom" | "toolbar") – edge windows reserve canvas space, “toolbar” replaces the subplot toolbar
size (int) – edge or toolbar thickness in pixels, required for edge windows
title (str, optional) – window title, drawn as a title bar for edge windows. If
Noneno title bar is drawn.window_flags (
imgui.WindowFlags_, optional) – imgui window flags, used when decorating, uses theImguiWindowdefault flags if not provided