hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en/latest/
MIT License
12.94k stars 676 forks source link

Vertical / horizontal zoom does not work in plots #2022

Open drnickriviera opened 1 year ago

drnickriviera commented 1 year ago

Version of Dear PyGui

Version: 1.8.0 Operating System: maxOs Ventura 13.2

My Issue/Question

Running the demo script, I am not able to zoom in the plots horizontally/vertically by holding the modifier keys and mouse right click drag.

I am not sure if this is an issue just with macOS or if it also happens on other OS

To Reproduce

  1. Run: demo script
  2. Goto: -> Plots -> Series -> Stair Series
  3. Do:
    1. Right click and drag to box selected data.
    2. Hold Shift to expand box selection vertically

Expected behavior

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg
import dearpygui.demo as demo

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=600)

demo.show_demo()

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()
bandit-masked commented 1 year ago

Why do you expect this to work? Is it a feature of imgui/implot?

drnickriviera commented 1 year ago

Actually it is a feature of implot and according to the dearpygui demo, also a feature of dearpygui.

image

In the documentation it is also stated that add_plot function has the optional arguments to change the modifier keys.

image

This is why I thought it should work :)