christina aruvickal

2023-10-26 08:17:21 UTC

Hi everyone,

I would like to plot two datasets in one plot. The datasets are basically energy files obtained from cp2k.

# I have 0-2300 MD steps in FILE1 and 2000-10000 MD steps in FILE2.

# I would like to plot 0-2300 MD steps from FILE1 and 2301-10000 MD steps from FILE2.

I have tried a few things:

eg: plot [1:2000] 'filename' u 1:6, [2001:] 'filename' u 1:6 (where 1 and 6 are the MD step number and conserved quantity respectively)

But can't get the plot I need. This seems quite simple, and I think I just

haven't worked with Gnuplot long enough to get this done.

Any help with this is much appreciated.

Regards,

Christina

I would like to plot two datasets in one plot. The datasets are basically energy files obtained from cp2k.

# I have 0-2300 MD steps in FILE1 and 2000-10000 MD steps in FILE2.

# I would like to plot 0-2300 MD steps from FILE1 and 2301-10000 MD steps from FILE2.

I have tried a few things:

eg: plot [1:2000] 'filename' u 1:6, [2001:] 'filename' u 1:6 (where 1 and 6 are the MD step number and conserved quantity respectively)

But can't get the plot I need. This seems quite simple, and I think I just

haven't worked with Gnuplot long enough to get this done.

Any help with this is much appreciated.

Regards,

Christina