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

Unable to see all elements of the legend if graph is small #531

Open
JuanDiegoMontoya opened this issue Nov 11, 2023 · 0 comments
Open

Unable to see all elements of the legend if graph is small #531

JuanDiegoMontoya opened this issue Nov 11, 2023 · 0 comments

Comments

@JuanDiegoMontoya
Copy link

I'm making a graph to visualize performance of various systems in my renderer. However, when the graph is small or if I add too many plots, some of the elements of the legend get cut off. I understand this is intended behavior, but as far as I can tell, there is no way to see those elements without making the graph annoyingly tall or splitting the plots into multiple graphs.

You can see how the next element of the legend is clipped in the screenshot:

Section of a graph showing the legend. There are too many plots and the bottom of the legend is clipped.

I browsed implot.h for mentions of "legend" and could not find a flag or graph/plot parameter that let me control this aspect of legend behavior.

Ideally, I would like to see the ability to scroll or drag through the legend, or have an option to allow the legend to be formatted with multiple rows and columns (the exact behavior of which would depend on whether ImPlotLegendFlags_Horizontal was set).

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

1 participant