-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Default to colorbar for continuous colour scales #555
Comments
My feeling is that it's harder to visually match up colors on a continuous color legend. Perhaps this is something that deserves empirical study, e.g., see how accurately and quickly people can interpret graphs with with continuous vs. discrete guides. |
That seems to be an issue with representing a continuous variable with color (a feature that has been available for long time). This is just an issue of how the legend/guide is displayed. Now, even a continuous mapping between color and data is represented by a few discrete labeled values. The colorbar guide draws the whole (or at least many more levels so that it looks continuous) range of colors and labels a select few with the corresponding data value. The colors that would be used on the graph would be unchanged from the current approach. That said, it would be interesting to see empirical data on determining the data value given the color comparing the current blocked legend versus a colorbar legend. |
When there's a continuous colorbar, I find my eyes going back and forth between the legend and the data a lot, and without any practical gain in interpreting the data... For example, compare these:
Here's what it feels like I'm doing:
Of course, it would be nice to have data on this stuff. Semi-unrelated issue: I noticed that the discrete legend has the larger values on top, while the continuous legend has smaller values on top. Is this difference intended? |
I agree Hadley's proposal. The benefit of color bar is twofold.
I imagine that few people will intend to show accurate value by continuous scale, e.g., few people will be interested in whether the point is 400, 399, or 401. By continuous color scale, viewer will be required to grasp the relation between each data point. For this purpose, gradient in the colorbar would be useful. If you want to show the precise value for continuous scale, you'd better to use other way, e.g., direct label.
Yes and no. When I write the colorbar, I followed Matlab style, so larger on top. |
No description provided.
The text was updated successfully, but these errors were encountered: