def _block_colormap(self, color, bg_color = (255,255,255,255)):
from numpy import array, float32, linspace, sqrt
pae_range = (0, 5, 10, 15, 20, 25, 30)
if color == (0,0,0,255):
pae_range = (15, 20, 25, 30)
...
Which says for the black color (rgba color = (0,0,0,255)) change the PAE range for the square modulation from 0-30 to 15-30. That will make PAE values < 15 all black. If you leave out the "if color == (0,0,0,255) part then both the ribbon colors and the black color will get your new pae_range modulation. After making this code change you have to restart ChimeraX to use it. Also on current macOS I think security rules will prevent you from modifying the code, but you can use Mac system settings Privacy & Security / Full Disk Access and enable access for whatever text editor you use to modify the Python file.
For a presentation image you may find it easier to just use a photo editing program, (e.g. Gimp or Photoshop) to change the contrast.
Tom
Here is what the above change did to an example PAE plot (P29474), left original, right modified.


On Mar 18, 2026, at 11:35 PM, Pim Huis in 't Veld via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX team,
I am colouring a PAE plot from a predicted multiprotein structure.
Color plot from structure – color the plot to match the 3D structure where the pair of entities represented by an X,Y point have the same ribbon color; show the rest of the plot in shades of gray
I would like to use the correct values of the shades of grey to make a legend for the plot. Is there a way to see these? Is it possible to include the used palette info on the page above (as for rainbow and green)?
Ideally, I would also like to change these shades of grey to have something a bit "steeper" (for example: 0 black, dark grey 5, grey 10, light grey 15, white 30). Is this already possible, or can it be added as a new palette or -ideally- as a customisable feature?
Thanks a million!
Pim
_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/