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

LUT export not correct #43

Open
brands-d opened this issue Feb 1, 2021 · 1 comment
Open

LUT export not correct #43

brands-d opened this issue Feb 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@brands-d
Copy link
Owner

brands-d commented Feb 1, 2021

The LUT of pyqtgraph plots does not get properly exported to matplotlib resulting in different colorscales.

@brands-d brands-d self-assigned this Feb 1, 2021
@brands-d brands-d added the bug Something isn't working label Feb 1, 2021
@brands-d
Copy link
Owner Author

brands-d commented Feb 1, 2021

This is a known problem and I do not have any solution. If you know how to address this please contact me.

Two workarounds:

  1. I added the setting "nPts" under [pyqtgraph]. It changes the number of colour points the LUT gets exported with and thus the resolution of the colour scale. Playing with this value can get you closer to the image displayed by pyqtgraph or maybe even result in better images.

  2. The residual plots have an additional problem of not respecting the symmetric colour scale for negative values and instead, matplotlib maximizes the contrast. I do not know why but one way to fix this is by opening the options window in the already opened matplotlib window (the one with lightning symbol), go to the second tab (Images, etc.) and there you can change the colour scale values. Simply choose the larger of both and overwrite the other with the same value but opposite sign, like this:

workaround

@brands-d brands-d closed this as completed Feb 1, 2021
@brands-d brands-d reopened this Feb 1, 2021
@brands-d brands-d added the help wanted Extra attention is needed label Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant