
Hi, Thanks for the information. Finally, I decided to write a small python script that use"2dlabels" to create a kind of keybar. The solution is not a generic one but works for me. I attach the output of the python script to this email since it may be helpful for someone. ==== from chimerax.core.commands import run from chimerax.graphics.windowsize import window_size from PyQt5.QtGui import QFontMetrics from PyQt5.QtGui import QFont run(session, 'set bgColor white') run(session, 'open Runs/000215_ProtRelionLocalRes/extra/relion_locres_filtered.mrc') run(session, 'open Runs/000215_ProtRelionLocalRes/extra/relion_locres.mrc') run(session, 'volume #1 voxelSize 7.08') run(session, 'volume #2 voxelSize 7.08') run(session, 'hide #2') run(session, 'color sample #1 map #2 palette 14.16,#0000da:17.15,#001cff:20.13,#006cff:23.12,#00b8ff:26.11,#1cffdb:29.09,#5dff9a:32.08,#9aff5d:35.07,#dbff1c:38.05,#ffcc00:41.04,#ff8600:44.03,#ff3b00:47.01,#da0000:50.0,#800000') font = QFont("Ariel", 12) f = QFontMetrics(font) _height = f.height() v = session.main_view vx,vy=v.window_size step = run(session, "2dlabel text 14.16 bgColor #0000da xpos 0.01 ypos %f size 12" % (0.000000*_height/vx)) run(session, "2dlabel text 17.15 bgColor #001cff xpos 0.01 ypos %f size 12" % (2.000000*_height/vx)) run(session, "2dlabel text 20.13 bgColor #006cff xpos 0.01 ypos %f size 12" % (4.000000*_height/vx)) run(session, "2dlabel text 23.12 bgColor #00b8ff xpos 0.01 ypos %f size 12" % (6.000000*_height/vx)) run(session, "2dlabel text 26.11 bgColor #1cffdb xpos 0.01 ypos %f size 12" % (8.000000*_height/vx)) run(session, "2dlabel text 29.09 bgColor #5dff9a xpos 0.01 ypos %f size 12" % (10.000000*_height/vx)) run(session, "2dlabel text 32.08 bgColor #9aff5d xpos 0.01 ypos %f size 12" % (12.000000*_height/vx)) run(session, "2dlabel text 35.07 bgColor #dbff1c xpos 0.01 ypos %f size 12" % (14.000000*_height/vx)) run(session, "2dlabel text 38.05 bgColor #ffcc00 xpos 0.01 ypos %f size 12" % (16.000000*_height/vx)) run(session, "2dlabel text 41.04 bgColor #ff8600 xpos 0.01 ypos %f size 12" % (18.000000*_height/vx)) run(session, "2dlabel text 44.03 bgColor #ff3b00 xpos 0.01 ypos %f size 12" % (20.000000*_height/vx)) run(session, "2dlabel text 47.01 bgColor #da0000 xpos 0.01 ypos %f size 12" % (22.000000*_height/vx)) run(session, "2dlabel text 50.00 bgColor #800000 xpos 0.01 ypos %f size 12" % (24.000000*_height/vx)) ==== On Wed, Jul 1, 2020 at 5:18 PM Elaine Meng <meng@cgl.ucsf.edu> wrote:
Hi Roberto, No, ChimeraX does not yet have a color key. It is listed in the "missing features" section on the ChimeraX download page.
I do not know of other alternatives, although they probably do exist. This has been discussed in previous posts, such as this thread: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/2020-June/001282.html>
Best, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Jul 1, 2020, at 4:25 AM, Roberto Marabini <roberto@cnb.csic.es> wrote:
hi, Is there a colorkey command in chimeraX (http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/2dlabels/2dlabels.html#colorkey>)? If it does not exist, is there any alternative other than using chimera and photoshop? Thanks Roberto