[chimerax-users] scale_bar

Tom Goddard goddard at sonic.net
Thu Jul 8 17:23:36 PDT 2021


Hi Dmitry,

  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

	zoom pixelSize 0.5

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.

  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

	camera ortho

  Tom


	

> On Jul 8, 2021, at 1:21 PM, Elaine Meng via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hi Dmitry,
> There may not be a good workaround.
> 
> Some (inconvenient and/or difficult) possibilities in ChimeraX have been discussed in previous posts.
> 
> 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:
> <https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2018-December/000341.html>
> 
> Using "shape rectangle" to make a planar rectangle of specified size, but it could be very difficult to position it exactly right:
> <https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2021-February/001899.html>
> 
> 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.
> <https://rbvi.ucsf.edu/chimerax/docs/user/tools/colorkey.html>
> 
> Best,
> Elaine
> -----
> Elaine C. Meng, Ph.D.                       
> UCSF Chimera(X) team
> Department of Pharmaceutical Chemistry
> University of California, San Francisco
> 
>> On Jul 8, 2021, at 12:27 PM, Dmitry A. Semchonok via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>> 
>> Dear Elaine,
>> 
>> Thanks, I see.
>> 
>> And what is the walk around strategy? )
>> 
>> Sincerely,
>> Dmitry
>> 
>> From: Elaine Meng
>> Sent: Thursday, July 8, 2021 8:14 PM
>> To: Dmitry A. Semchonok
>> Cc: chimerax-users at cgl.ucsf.edu
>> Subject: Re: [chimerax-users] scale_bar
>> 
>> Hi Dmitry,
>> ChimeraX does not yet have a scale bar.  It is listed in the "Missing Features" section on the download page.
>> 
>> <https://www.rbvi.ucsf.edu/chimerax/download.html>
>> 
>> Best,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.                       
>> UCSF Chimera(X) team
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco
>> 
>>> On Jul 8, 2021, at 11:03 AM, Dmitry A. Semchonok via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>>> 
>>> Dear colleagues,
>>> Quick question – 
>>> would you be so kind and tell me where the scale bar can be found? 
>>> Thanks 
>>> Sincerely,
>>> Dmitry
> 
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
> 




More information about the ChimeraX-users mailing list