Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get plot item visibility status #340

Open
errollw opened this issue Mar 21, 2022 · 4 comments
Open

Get plot item visibility status #340

errollw opened this issue Mar 21, 2022 · 4 comments

Comments

@errollw
Copy link

errollw commented Mar 21, 2022

First off, thank you for the amazing library!

Is there any way to access plot item visibility? I am enjoying the cumulative histogram, and have added some vertical lines (with PlotVLines) at e.g. the 50th, 75th, ... percentiles.

image

But, when I hide one of these vertical lines, I would also like to hide to corresponding text, which I add with PlotText. If I could access the item->Show value, I would just skip over adding this vertical text.

image

I can't figure out a way to get access to the visibility status of that vertical line. Is there any way to do this currently?

Thank you! 🙇

@epezent
Copy link
Owner

epezent commented May 8, 2022

There is a PR adding this, but I have not had time to consider how the API for "previous items" needs function.

#295

@ssteinbach
Copy link

Wanted to poke this thread. I'm hitting the same issue - I'd love to be able to hide PlotText for plots that are hidden in the legend. And agree, this library is great, thanks!

@Dvad
Copy link

Dvad commented Jul 31, 2023

I have the got the same need recently.

@TheMiles
Copy link

Hi, agreeing with the others. This is a great library and very helpful, thank you!

And I'm also interested in this feature.
In my case I have the need to recreate the context from time to time.
And then the ImPlotCond_Once information is lost, meaning something
visible is hidden again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants