-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Legend title in horizontal mode is misaligned and ambiguously sized #5595
Comments
@alexcjohnson we played with various permutations of increasing the font size as in this PR and bolding it and bolding with no change to font size or a smaller change to font size and all things considered, I still favour bumping the font size defaults for legend and colorbar titles (all orientations) to exactly match the logic we have for axis titles. |
OK, "big" is fine. I still somewhat prefer "small and bold" I think, as a way to better disambiguate the title from the trace names, but that would be a pretty big visual change to push on people as a new default. The vertical misalignment I still think should be treated simply as a bug, having font size "fix" it seems awfully fragile - does the "fix" still work if you make |
OK re "big" for now.
First thing I checked, and no. I think we should merge a version of #5611 that implements the size changes, and then actually tackle this alignment problem for real. We do need to have a conversation about what we want this alignment to be, though, and it's pretty tricky to spec out given various permutations of "legend title could be multiple lines", "there could be multiple rows of legend items" and "trace names could be multiple lines". Input needed! |
Maybe we need new values for
legend.title.side
like "middle left" and "top center"?We also have a typography-hierarchy problem where the legend title by default is the same size as the legend items, and is smaller than e.g. the axis title size. So maybe we need to make the legend title (and colorbar title!) size the same as xaxis.title.size as well to avoid ambiguity. And/or implement #4646 and just make all the titles bold, like the way Vega does it.
The text was updated successfully, but these errors were encountered: