Hi Yeping,

It's possible to create a such a label, but unfortunately it's a bit 
complicated. The following script places a label with 2500 states in the upper 
right corner of the display area.

# create a discrete multi-state object with one labeled atom per state
pseudoatom tmp, label=pending
python
for i in range(2500):
    cmd.label("tmp", "'{} ps'".format(i * 80))
    cmd.create('timestaple', 'tmp', 1, i + 1, discrete=1)
python end
delete tmp
# anchor the label in the upper right corner
set label_screen_point, [1, 1, 0], timestaple
set label_relative_mode, 1, timestaple
# align the label to the bottom left of the anchor
set label_position, [-1, -1, 0], timestaple


Those label settings are documented here:
https://pymol.org/d/setting:label

Hope that helps.

Cheers,
  Thomas


> On Jan 15, 2020, at 5:22 AM, sunyeping via PyMOL-users 
> <pymol-users@lists.sourceforge.net> wrote:
> 
> Dear All,
> 
> I load a molecular dynamics (gromacs) trajectory into Pymol and wish to make 
> a movie with it. The trajectory contains 2500 frames, corresponding to 200 ns 
> simulation time, so each frame represents 80 ps. I wish to print time stample 
> on each stample. For example, on the first frame, " 0 ns" is printed; on the 
> second frame, "80 ps" is printed; on the third frame, "160 ps" is printed. 
> How I cannot find any clue how to do this. Could you have any clue how to 
> finish this task? 
> 
> Best regards,
> Yeping Sun
> _______________________________________________
> PyMOL-users mailing list
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
> Unsubscribe: 
> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

--
Thomas Holder
PyMOL Principal Developer
Schrödinger, Inc.



_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to