all-same-value attribute coloring yields black instead of 'mid' color
The following bug report has been submitted:
Platform: Linux-3.10.0-1062.9.1.el7.x86_64-x86_64-with-centos-7.7.1908-Core
ChimeraX Version: 0.91 (2019-12-23)
Description
`color byattr` yields a jet-black model when all the attribute values are equal. Effectively invisible on the default background.
Log:
UCSF ChimeraX version: 0.91 (2019-12-23)
© 2016-2019 Regents of the University of California. All rights reserved.
How to cite UCSF ChimeraX
> open 3io0
3io0 title:
Crystal structure of EtuB from Clostridium kluyveri [more info...]
Chain information for 3io0 #1
---
Chain | Description
A | EtuB protein
3io0 mmCIF Assemblies
---
1| author_and_software_defined_assembly
> color byattribute occupancy #1
1658 atoms, 230 residues, atom occupancy range 1 to 1
OpenGL version: 3.3.0 NVIDIA 440.33.01
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
Change History
(7)
| Component: |
Unassigned → Depiction
|
| Owner: |
set to Eric Pettersen
|
| Platform: |
→ all
|
| Project: |
→ ChimeraX
|
| Status: |
new → accepted
|
| Summary: |
ChimeraX bug report submission → all-same-value attribute coloring yields black instead of 'mid' color
|
| Cc: |
Eric Pettersen added
|
| Owner: |
changed from Eric Pettersen to Tom Goddard
|
| Status: |
accepted → assigned
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
The problem is that std_commands.color._value_colors returns all black (which isn't even in the palette) when the values are all the same. Under the hood it calls into colormap-processing routines in chimerax.surface. I believe those routines would need to be enhanced to handle this situation.