[Chimera-users] Fit-to-window for procedurally generated images
Elaine Meng
meng at cgl.ucsf.edu
Fri Dec 9 13:45:57 PST 2016
Hi Mike,
I have been bothered by this issue myself…
There is a “window” command that is meant to fill that need. However, in my experience, it generally leaves too much space around the structures. Maybe it is a tolerable amount; take a look. One could use “window” or the similar “focus” (each without arguments) and then “scale" up empirically something like 1.2X, but with that approach there is no guarantee some bit won’t fall outside the frame.
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/window.html>
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/focus.html>
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/scale.html>
The extra space is larger in the default perspective mode, as opposed to the orthographic projection (see “set projection” or the Camera tool if interested).
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/set.html#projection>
Sorry I don’t have a definitive solution to maximize the use of pixels,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
On Dec 9, 2016, at 9:17 AM, Mike Sivley <mike.sivley at vanderbilt.edu> wrote:
> I am procedurally generating images of protein structures using a Chimera python script. I can center the protein structure within the viewing window, align the protein to emphasize certain elements, set the output size of the final image, and manually apply a scale factor to the view, but I have not found a way to ensure that the protein structure is maximized (but fully contained) within the final image. Is there a "fit-to-window" command that will automatically scale the view in this way?
>
> Thanks!
> Mike Sivley
More information about the Chimera-users
mailing list