-
Notifications
You must be signed in to change notification settings - Fork 73
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
silx.gui.plot.StackView: Removed setColormap
autoscale
argument
#3805
silx.gui.plot.StackView: Removed setColormap
autoscale
argument
#3805
Conversation
src/silx/gui/plot/StackView.py
Outdated
@@ -56,7 +56,7 @@ | |||
|
|||
|
|||
sv = StackViewMainWindow() | |||
sv.setColormap("jet", autoscale=True) | |||
sv.setColormap("viridis", vmin=numpy.min(mystack), vmax=numpy.max(mystack)) |
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.
Maybe safer to use minmax
(for nan/inf pbm)
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.
jet hihihi
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.
Yes, but that's for sample code, then I would hard-code the value.
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.
Aaaaoutch, that's a big bunch of code for the documentation...
Added an update of |
This PR removes the
autoscale
argument ofStackView.setColormap
that is marked as deprecated since v0.14.related to #3754