Opened 6 years ago

Closed 6 years ago

#2172 closed defect (fixed)

reverse palettes not working correctly for color-by-value without specified range

Reported by: Elaine Meng Owned by: Conrad Huang
Priority: moderate Milestone: 0.91
Component: Depiction Version:
Keywords: Cc: Tom Goddard
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

open 2gbp
color by bfactor pal rainbow
... OK, you can see whole range of colors ...
color by bfactor pal rainbow
... now it's all blue!

I thought I tested this before but maybe the fix for value,color pairs broke it.

Tested in UCSF ChimeraX version: 0.91 (2019-07-02)

Change History (4)

comment:1 by Elaine Meng, 6 years ago

The second command that doesn't work correctly is "hat" symbol before "rainbow" ... I can't figure out how to escape the hat correctly for wikiformatting, which made rainbow into a superscript. The "hat" symbol is what we decided should indicate reversing the colors in a palette, and it worked at some point but is apparently broken now.

comment:2 by Elaine Meng, 6 years ago

Milestone: 0.91

comment:3 by Elaine Meng, 6 years ago

Summary: suspect reverse palettes are not working correctlyreverse palettes not working correctly for color-by-value without specified range

Update: reverse palettes work for
(A) sequential coloring
(B) color-by-value if "range" option is used

They do not work for color-by-value if the range option is omitted.

For example, commands:

open 2gbp
surface
color by bfactor #1 pal rainbow
color by bfactor #1 pal rainbow range 2,63.9

... the two color cmds above both work and are identical because 2,63.9 is the full range (default)

color by bfactor #1 pal <hat-symbol>rainbow range 2,63.9
color by bfactor #1 pal <hat-symbol>rainbow

... only the last one does not work

comment:4 by Conrad Huang, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed in 1d2b134e0.

When reversing colormaps, the "values specified by user" attribute was not being preserved.

Note: See TracTickets for help on using tickets.