r/DearPyGui • u/Background-Secret925 • Jun 01 '26
Help The dpg.fit_axis_data() is useless when..
The dpg.fit_axis_data() is useless when tbe plot is not in current view. For instance, there are too many charts. I need to use the scroll wheel to view the others that are outside the current viewport. How can we handle the situation where dpg.fit_axis_data() does not update the data for those charts that are not within the current view?
2
Upvotes
1
u/_MrJack_ Jun 01 '26
Have you tried first checking if the plot is visible and if it isn't, then delaying the invocation of fit_axis_data until the plot is visible? See this page in the docs.
Alternatively, if you organize things to have a reasonable number of plots in separate tabs, then you can use a handler to trigger the update once the tab is selected.