Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions fastplotlib/ui/right_click_menus/_standard_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ def update(self):
imgui.text(f"subplot: {name}")
imgui.separator()

_, show_fps = imgui.menu_item(
"Show fps", "", self.get_subplot().get_figure().imgui_show_fps
)
self.get_subplot().get_figure().imgui_show_fps = show_fps

# autoscale, center, maintain aspect
if imgui.menu_item(f"Autoscale", "", False)[0]:
self.get_subplot().auto_scale()
Expand Down Expand Up @@ -174,4 +179,19 @@ def update(self):

imgui.end_menu()

# renderer blend modes
if imgui.begin_menu("Blend mode"):
for blend_mode in sorted(
self.get_subplot().renderer._blenders_available.keys()
):
clicked, _ = imgui.menu_item(
label=blend_mode,
shortcut="",
p_selected=self.get_subplot().renderer.blend_mode == blend_mode,
)

if clicked:
self.get_subplot().renderer.blend_mode = blend_mode
imgui.end_menu()

imgui.end_popup()