binned color ranges for scolor?

Hi all, I was wondering whether it is possible to use binned ranges for scolor? Specifically, I would like to color one volume by the density values of a second volume, but rather than using a continuous color palette, I would like to highlight several discrete bins with particular colors - e.g coloring all values between 2 and 4 red, and all values between 6 and 8 green, while leaving other voxels uncolored (or colored gray, for example). Is this currently possible? I couldn’t figure it out - both cmap and map range seem to give continuous coloring. Best, Oliver.

Hi Oliver, Yes, but only by doing it sort of manually, i.e., by giving the same color twice at the lower and upper bounds of the bin. For example, to color red up to .19999, blue .2-.29999, yellow .3 and up: scolor #0 volume #1 cmap .19999,red:.2,blue:.29999,blue:.3,yellow <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/scolor.html> <http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/scolor.html#options> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco On Mar 11, 2015, at 1:20 PM, Oliver Clarke <olibclarke@gmail.com> wrote:
Hi all, I was wondering whether it is possible to use binned ranges for scolor?
Specifically, I would like to color one volume by the density values of a second volume, but rather than using a continuous color palette, I would like to highlight several discrete bins with particular colors - e.g coloring all values between 2 and 4 red, and all values between 6 and 8 green, while leaving other voxels uncolored (or colored gray, for example).
Is this currently possible? I couldn’t figure it out - both cmap and map range seem to give continuous coloring. Best, Oliver.
participants (2)
-
Elaine Meng
-
Oliver Clarke