[Chimera-users] Newlines in labelopt string

Repic Matej matej.repic at epfl.ch
Wed Oct 7 00:35:48 PDT 2015


Hi Eric,

Thanks for the suggestion. I might just leave it as is, since getting the right label offset is probably more trouble than it is worth.

Best,
------------------------------------------------------
Dr. Matej Repic
Ecole Polytechnique Fédérale de Lausanne
Laboratory of Computational Chemistry and Biochemistry
SB - ISIC – LCBC
BCH 4108
CH - 1015 Lausanne
------------------------------------------------------

From: Eric Pettersen <pett at cgl.ucsf.edu<mailto:pett at cgl.ucsf.edu>>
Date: Tuesday, October 6, 2015 at 21:10
To: Matej Repic <matej.repic at epfl.ch<mailto:matej.repic at epfl.ch>>
Cc: "chimera-users at cgl.ucsf.edu<mailto:chimera-users at cgl.ucsf.edu> List" <chimera-users at cgl.ucsf.edu<mailto:chimera-users at cgl.ucsf.edu>>
Subject: Re: [Chimera-users] Newlines in labelopt string

Hi Matej,
I think you’re out of luck.  Even if you manage to get a literal newline (or its Unicode equivalent) into an atom label, it doesn’t produce a newline, it just shows a boxed question mark instead.
There’s a horrible workaround that I barely want to mention.  You could open 4 copies of the structure and have each one show a different part of the label, with a different label offset for each.  You would have to change the labelopt before labeling each structure.  Like I said, horrible!

—Eric


Eric Pettersen
UCSF Computer Graphics Lab


On Oct 6, 2015, at 7:54 AM, Repic Matej <matej.repic at epfl.ch<mailto:matej.repic at epfl.ch>> wrote:

Hi everyone,

I have pretty long atom labels and it would be nice if I could split them
with newlines. I set labels with labelopt info %(name)s %(ee).2f %(ea).2f
%(er).2f

# what I have
C3 0.41 0.22 0.14

# what I want
C3
0.41
0.22
0.14

The obvious \n does not work. Any ideas?

Thank you,

------------------------------------------------------
Dr. Matej Repic
Ecole Polytechnique Fédérale de Lausanne
Laboratory of Computational Chemistry and Biochemistry
SB - ISIC ­ LCBC
BCH 4108
CH - 1015 Lausanne
------------------------------------------------------


_______________________________________________
Chimera-users mailing list
Chimera-users at cgl.ucsf.edu<mailto:Chimera-users at cgl.ucsf.edu>
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20151007/df367897/attachment.html>


More information about the Chimera-users mailing list