When hiding a series by clicking on the legend, dpg.is_item_shown(series_id)
is not updated
#2403
Labels
dpg.is_item_shown(series_id)
is not updated
#2403
Version of Dear PyGui
Version: 2.0.0
Operating System: Ubuntu 20.04
My Issue/Question
When changing the visibility of a plot series in the legend. The value of
dpg.is_item_shown
is not updated.If there is any other way of retrieving this information. I would also be fine with that.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The value of
dpg.is_item_shown
should be updatedScreenshots/Video
My use case is that I use a
custom_series
alongside a normal series to overlay the hovered point. When the main series is hidden, I would like to hide the custom series.Standalone, minimal, complete and verifiable example
Note
I found that when calling
is_item_shown
, it calls:DearPyGui/src/dearpygui_commands.h
Line 3731 in 138983b
Which reads from:
DearPyGui/src/mvAppItem.h
Line 112 in 138983b
The value which is updated by the legend is
https://github.com/epezent/implot/blob/f156599faefe316f7dd20fe6c783bf87c8bb6fd9/implot_internal.h#L940
which can be retrieved with
GetItem
fromimplot_internal.h
If you are open to contribution, I am willing to help. For now I don't know what would be your preferred solution as it seems difficult to update the value of
AppItemConfig
fromImPlotItem
.The text was updated successfully, but these errors were encountered: