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

silx.gui.plot.StackView: Removed setColormap autoscale argument #3805

Merged

Conversation

t20100
Copy link
Member

@t20100 t20100 commented May 5, 2023

This PR removes the autoscale argument of StackView.setColormap that is marked as deprecated since v0.14.

related to #3754

@t20100 t20100 added this to the 2.0.0 milestone May 5, 2023
@@ -56,7 +56,7 @@


sv = StackViewMainWindow()
sv.setColormap("jet", autoscale=True)
sv.setColormap("viridis", vmin=numpy.min(mystack), vmax=numpy.max(mystack))
Copy link
Contributor

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)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jet hihihi

Copy link
Member Author

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.

Copy link
Contributor

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...

@t20100
Copy link
Member Author

t20100 commented May 10, 2023

Added an update of actions/checkout to v3 because v2 relies on node12 which is soon to be removed from github.

@vallsv vallsv merged commit 96461e7 into silx-kit:main May 10, 2023
@t20100 t20100 deleted the remove-StackView-setColormap-autoscale-arg branch May 10, 2023 14:04
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

Successfully merging this pull request may close these issues.

2 participants