[chimerax-users] Can we draw arrows in ChimeraX?

Elaine Meng meng at cgl.ucsf.edu
Thu Feb 28 14:33:40 PST 2019


Hi Steve,
I can’t think of any way to create 3D curved arrows.  However, there are some possibilities for straight arrows and 2D curved arrows that may be good enough for your purposes:

(A) 3D straight arrows (cylinder + cone) can be created in the BILD text-file format and read it in.
<http://unicode.org/charts/#symbols>

(B) 2D labels are text labels that can be dragged around in the plane of the graphics window.  Although Chimera also has 2D straight arrows that can be interactively repositioned at either end by dragging, ChimeraX does not have these (yet).  ChimeraX 2D labels can only be text and symbols.  However, symbol characters include both straight and curly arrows, and you can make them all different sizes.  

You just can’t adjust the proportions of the symbol, and you cannot rotate it at all even in the 2D plane (cannot turn it sideways or diagonal), and they are only 2D (will not actually wrap around your bond or objects in 3D space).

ChimeraX also does not yet have the graphical interface to 2D labels that Chimera has, so you have to define them in the 2dlabels command using unicode character codes or character names:
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/2dlabels.html>

It can be a pain to find the unicode for the exact arrow you want, however, even if you don’t mind the other limitations above.
<http://unicode.org/charts/#symbols>

I attach an image with a 2D label made with this command:

2dl create arrow1 text '\u21BB' size 80 color yellow

I didn’t make the icons you showed, but I’m pretty sure that the arrow parts of the icon images were not drawn in ChimeraX.
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco


> On Feb 28, 2019, at 1:46 PM, Steve Chou <stevezchou at gmail.com> wrote:
> 
> Dear ChimeraX team,
> 
> I need to draw straight and curved arrows to show the straight and twisting forces on the molecules. See the attached images (cropped from ChimeraX interface) for details. Does ChimeraX have the functionality to do this?
> Steve
> <IMG_8385.jpg>
> -- 
> Steve Chou
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20190228/5a196985/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: curlyarrowlabel.png
Type: image/png
Size: 43145 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20190228/5a196985/attachment.png>


More information about the ChimeraX-users mailing list