plot scatter of the positions of two type atoms

Dear all user

I want to plot scatter of the positions of two type atoms.
How can I do it?
I tried found in VMD but I did not find any option.
Best wishes

Hi Mohammad, are the atoms of the two types in paired sets? A scatter plot implies that the coordinates come in pairs (x1, y1), (x2, y2), …

The dump command can be defined multiple times, e.g. a different one for each group that you select:


Dear Giacomo
Thanks for replying to me.

I use this code to dump a snapshot of positions of atoms

write_dump all custom tragectory9.lammpstrj type x y z

Also, I use to try to dump each group of atoms in a separate file but I want to try dump in one file because I need to develop several types of atoms.

best wishes

It’s possible to make scatter plots of atom positions quite easily in OVITO ( Load your dump file in OVITO and then under “Add modification”, click “scatter plot”. From there you can select the properties you wish to plot.