We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I will plot multi lines in one frame, but do not want show all of them in beginning. Is there some way to disable all lines in legend?
The text was updated successfully, but these errors were encountered:
I can directly modify plotitem's member variable to achive that, but it needs to include implot_internal.h. Is there some elegant way to do this?
implot_internal.h
if (first_draw) { first_draw = false; ImPlotContext *ctx = ImPlot::GetCurrentContext(); ImPlotPlot *plot = ctx->CurrentPlot; const int num_items = plot->Items.GetLegendCount(); for (int i = 0; i < num_items; ++i) { ImPlotItem *item = plot->Items.GetLegendItem(i); item->Show = false; } } ``
Sorry, something went wrong.
Am also interested in achieving this.
No branches or pull requests
I will plot multi lines in one frame, but do not want show all of them in beginning.
Is there some way to disable all lines in legend?
The text was updated successfully, but these errors were encountered: