[yt-users] Set colors of bad values for a colormap?

Yi-Hao Chen yihaochentw at gmail.com
Thu Jul 7 11:39:00 PDT 2016


Hi all,

I have some projection plots that are displayed in log scale. However, some
of the pixels have "0" values. The log10 of zero is -inf and yt displays
them in white. I am looking for a way to set the color of those pixels.
Does anyone know how to do it? Something similar to set_bad()
<http://matplotlib.org/api/colors_api.html#matplotlib.colors.Colormap.set_bad>
in matplotlib would be really helpful.

Cheers,
Yi-Hao Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160707/d56c25b8/attachment.htm>


More information about the yt-users mailing list