Hello, 
What I would like to do is write a python script that simultaneously
drives lammps (my molecular simulation program), puts lammps output to
pymol, and plot some pylab plots. 

When I try this:

import pymol
pymol.finish_launching()

import matplotlib
import pylab

pylab.ion()
pylab.figure()
pylab.ioff()
pylab.draw([1,2],[1,2])
raw_input()

I do get my interactive pymol gui, but the pylab window is dead. It pops
up, but no line is drawn. I suspect that has something to do with the
gui handlers, so I would have to attach the pylab gui to the pymol one,
I suspect. I just don't know how to do that.

Nota bene:
replacing the pylab lines with
pylab.figure()
pylab.plot([1,2],[1,2])
pylab.show()

works, but then the handler is with the pylab window, and no code after
that can be executed any more. 
So you cannot update this window during execution time. 

Thanks for any help!



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to