set_imgui_right_click#

Subplot.set_imgui_right_click(popup=None, *, window_flags=None)[source]#

Set the imgui popup that is opened by a right-click within this subplot, replaces the Figure’s popup within this subplot. Can also be used as a decorator, see the ImguiFigure.set_imgui_right_click examples.

Parameters:
  • popup (ImguiPopup | callable, optional) – an ImguiPopup instance, or a function that draws imgui elements. Omit when decorating.

  • window_flags (imgui.WindowFlags_, optional) – imgui window flags for the popup