<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Dmitry,<div class=""><br class=""></div><div class=""> I added a "scalebar" command to ChimeraX, in tonight's daily builds. To make a scalebar 10 Angstroms long</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>scalebar 10</div><div class=""><br class=""></div><div class="">and here are examples changing its color, position, size.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>scalebar color blue xpos .7</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>scalebar color auto</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>scalebar 50 thickness 5</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>scalebar off</div><div class=""><br class=""></div><div class="">It adjusts size as you zoom. Also the "move label" mouse mode lets you drag the scalebar to a new position. The scale bar is a special kind of 2D label. Unlike Chimera it does not show a number over the label and there is not yet a user interface panel for it, just the command.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="BD3DB88D-14A5-4C77-9D82-C03B17BF26A0" width="470" height="462" src="cid:B2B6FAA2-40AB-48B9-A295-221FA2F83EE3" class=""></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 8, 2021, at 5:23 PM, Tom Goddard via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Dmitry,<br class=""><br class=""> One other method for making a scale bar which I think is the easiest is to set the ChimeraX zoom by specifying the screen image pixel size in Angstroms with ChimeraX command<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>zoom pixelSize 0.5<br class=""><br class="">Then save your image without changing the zoom and add a scale bar with an image editor (Photoshop, Gimp, ...). If I wanted a 50 Angstrom scale bar I would make a 100 pixel wide rectangle in the photo editor since each pixel is 0.5 Angstroms.<br class=""><br class=""> Keep in mind with perspective projection the pixel size varies with the depth and the zoom command sets the pixel size at the depth of the center of rotation. You may want to use orthographic projection so the pixel size does not vary with depth, ChimeraX command<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>camera ortho<br class=""><br class=""> Tom<br class=""><br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span><br class=""><br class=""><blockquote type="cite" class="">On Jul 8, 2021, at 1:21 PM, Elaine Meng via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Hi Dmitry,<br class="">There may not be a good workaround.<br class=""><br class="">Some (inconvenient and/or difficult) possibilities in ChimeraX have been discussed in previous posts.<br class=""><br class="">Making a 3D object with simple BILD format, or using a specific pixel size per distance to create the image and then using some separate image-editing program to add a scale bar:<br class=""><<a href="https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2018-December/000341.html" class="">https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2018-December/000341.html</a>><br class=""><br class="">Using "shape rectangle" to make a planar rectangle of specified size, but it could be very difficult to position it exactly right:<br class=""><<a href="https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2021-February/001899.html" class="">https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2021-February/001899.html</a>><br class=""><br class="">You can draw a horizontal bar by hand using the Color Key tool (just make it all one color) but you would have to figure out the scaling yourself and enter in the numbers manually.<br class=""><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/tools/colorkey.html" class="">https://rbvi.ucsf.edu/chimerax/docs/user/tools/colorkey.html</a>><br class=""><br class="">Best,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><blockquote type="cite" class="">On Jul 8, 2021, at 12:27 PM, Dmitry A. Semchonok via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Dear Elaine,<br class=""><br class="">Thanks, I see.<br class=""><br class="">And what is the walk around strategy? )<br class=""><br class="">Sincerely,<br class="">Dmitry<br class=""><br class="">From: Elaine Meng<br class="">Sent: Thursday, July 8, 2021 8:14 PM<br class="">To: Dmitry A. Semchonok<br class="">Cc: <a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a><br class="">Subject: Re: [chimerax-users] scale_bar<br class=""><br class="">Hi Dmitry,<br class="">ChimeraX does not yet have a scale bar. It is listed in the "Missing Features" section on the download page.<br class=""><br class=""><<a href="https://www.rbvi.ucsf.edu/chimerax/download.html" class="">https://www.rbvi.ucsf.edu/chimerax/download.html</a>><br class=""><br class="">Best,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><blockquote type="cite" class="">On Jul 8, 2021, at 11:03 AM, Dmitry A. Semchonok via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Dear colleagues,<br class="">Quick question – <br class="">would you be so kind and tell me where the scale bar can be found? <br class="">Thanks <br class="">Sincerely,<br class="">Dmitry<br class=""></blockquote></blockquote><br class=""><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""><br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>