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
13.12k stars 683 forks source link

Auto-Scaling Axis in plots #1780

Open xlr8max opened 2 years ago

xlr8max commented 2 years ago

Is your feature request related to a problem? Please describe. Not exactly a problem, but I think this option was missed. I want to auto-fit the X axis by code. Currently I can only do it manually, if I right click on the axis. (See attached picture )

Describe the solution you'd like Is it possible to set a parameter to true/false for auto scaling? same as for Invert and Log Scale Alternatively, I would like to set a timeframe (for example the last minute) to be plotted

Describe alternatives you've considered Manually adjusting the axis every time I start the program

Additional context DearPyGui functions here and here

yannou38 commented 3 weeks ago

Done in #2275 dpg.add_plot_axis(dpg.mvYAxis, label="value",parent=graph,auto_fit=True)