Winston.jl icon indicating copy to clipboard operation
Winston.jl copied to clipboard

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

Open ziotom78 opened this issue 9 years ago • 1 comments

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.

ziotom78 avatar Mar 29 '16 06:03 ziotom78

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

ezaron avatar Mar 30 '17 18:03 ezaron