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: Replaced setColormap autoscale argument by scaleColormapRangeToStack method #3279

Merged
merged 6 commits into from
Nov 25, 2020

Conversation

t20100
Copy link
Member

@t20100 t20100 commented Nov 24, 2020

This PR deprecates the autoscale argument of StackView.setColormap which triggers the scaling of the colormap to the whole stack when setColormap or setStack is called, and so it is NOT use the whole stack when in autoscale mode as on would expect.
A scaleColormapRangeToStack method is added to which sets the range of the colormap to that of the stack.
This does not prevent adding a true autoscale to stack later.

If someone has a better idea to name the scaleColormapRangeToStack method, I'd take it.

To me it closes #2835

@t20100 t20100 added this to the 0.14 milestone Nov 24, 2020
@vallsv
Copy link
Contributor

vallsv commented Nov 24, 2020

I think it's fine

@payno
Copy link
Member

payno commented Nov 25, 2020

+1

@payno payno merged commit aff5a05 into silx-kit:master Nov 25, 2020
@t20100 t20100 deleted the stackview branch December 7, 2020 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[plot] Rework StackView colormap
3 participants