this was in my drafts box. Not sure I sent it.

Rick,

Gotta think out of the box on this one.

>
> Is there a way to label a line or plane created by the "draw" command?
>
> i.e. draw line1 {0.0 0.0 0.0} {4.0 0.0 0.0}; select $line1; label "x";

Ahhh, custom axes, eh?

No, sorry, can't do that. Labels are strictly properties of atoms. And you
can only select atoms as well, not drawn objects.

Depends how much control you have over your subject matter. Here's what I
would do:

1) Create a file labels.xyz:

2
just 2 labels
He 4.1 0.0 0.0
Xe -0.1 0.0 0.0

2) load labels.xyz along with your file:


load "fileset" "myfile.xyz" "labels.xyz"
restrict */1001 # turn off all atoms in second "labels" frame
frame 0;
draw xaxis {0 0 0} {4 0 0}  #property of both frames
select _He; label x         #label is in frame 2001
select _Xe; label 0         #label is in frame 2001

frame 1001   # no labels
frame 2001   # no molecule
frame 0      # everything


The frame command just prior to draw determines what you see when.


load "fileset" "myfile.xyz" "labels.xyz"
restrict */1001 # turn off all atoms in second "labels" frame
frame 1001;
draw xaxis {0 0 0} {4 0 0}  #property of frame 1001
select _He; label x         #label is in frame 2001
select _Xe; label 0         #label is in frame 2001

frame 1001   # molecule, axis, but no labels
frame 2001   # just labels
frame 0      # everything


or


load "fileset" "myfile.xyz" "labels.xyz"
restrict */1001 # turn off all atoms in second "labels" frame
frame 2001
draw xaxis {0 0 0} {4 0 0}  #property of frame 2001
select _He; label x         #label is in frame 2001
select _Xe; label 0         #label is in frame 2001

frame 1001   # no axis or labels
frame 2001   # no molecule
frame 0      # everything


Enjoy!

Bob


>
> Thanks, Rick
>
> Dr. Richard Spinney
> Department of Chemistry
> Ohio State University
> 100 West 18th Ave
> Columbus, OH
> 43210
> (614) 247-6847
>
>
>
> -------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
> Get stuff done quickly with pre-integrated technology to make your job
easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to