DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

A function for ending querying in plots

Open vyrjana opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I would like to make use of querying in plots so that a user could highlight a region of the plot and then use a keyboard shortcut or press a button to make some action occur (e.g. hide the plotted data within that region). However, at the moment the highlighted region would be left in place unless the user manually stopped the querying. Disabling querying via configure_item does not remove the highlighted region that is drawn on the plot.

Describe the solution you'd like The ability to programmatically end querying in plots would solve the issue described in the last part of the previous section. Such a function would also complement the existing is_plot_queried and get_plot_query_area functions.

Describe alternatives you've considered A modal window created specifically for the purpose could be used and then closed once the action has been performed. However, it does mean adding more steps for the user to perform the action.

Additional context See #1583 for the initial discussion.

vyrjana avatar Mar 12 '22 06:03 vyrjana

I would like to second this, I have an application that loads new data and the query window stays even when the underlying data changes. Since the query window and callback does not do any bounds checking on its own. This causes my application to crash (since I'm not doing bounds checking either) when the query window causes some out of bounds array access. I would like to be able to just remove the query window when I load new data.

geekbozu avatar May 01 '22 19:05 geekbozu