-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Split all value dimensions when splitting by path color #2990
Conversation
c2d8693
to
e9771ad
Compare
@jlstevens Ready to review and once merged a dev release would be helpful. |
if clmin == clmax: | ||
idx = np.argmin(np.abs(np.array(levels)-clmin)) | ||
clip = levels[idx: idx+2] if len(levels) > idx+2 else levels[idx-1: idx+1] | ||
return cmap, clip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the return value has changed (or at least now includes clip
) it might be worth updating the docstring...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, done.
This change makes a lot of sense. Other than one minor comment to address, I am happy to merge. |
Looks good to me. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When displaying a path with a varying value dimension used to color each line segment the path is split into little chunks. However previously other value dimensions would not be split in this way which would cause several issues:
The solution is to split all value dimensions by default.