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

Allow the user to specify the color to be used with NaNs in imagesc #264

Open
ziotom78 opened this issue Mar 29, 2016 · 1 comment
Open

Comments

@ziotom78
Copy link

Currently, Winston's imagesc uses black for those matrix elements which have NaNs or infinite values. I think it would be nice to have a keyword parameter for this. Sometimes I find useful to mark "unseen" pixels using NaNs, and these should be displayed using the background color (white).

If you agree, I can submit a PR for this. My idea is to add a keyword argument to data2rgb and imagesc itself.

@ezaron
Copy link

ezaron commented Mar 30, 2017

I would like to use this feature also. I think a keyword argument to imagesc makes sense and is possibly the easiest approach (other than hardwiring it in the source code).

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

No branches or pull requests

2 participants