Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Free markets select for winning solutions." -- Eric S. Raymond


devel / comp.graphics.apps.gnuplot / Re: Plotting multiple datsets

SubjectAuthor
* Plotting multiple datsetschristina aruvickal
`- Re: Plotting multiple datsetsJörg Buchholz

1
Plotting multiple datsets

<dfd79a75-f3a6-4c81-a6e4-d63915f61549n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=163&group=comp.graphics.apps.gnuplot#163

  copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a37:ad16:0:b0:76d:567a:42f0 with SMTP id f22-20020a37ad16000000b0076d567a42f0mr44879qkm.3.1698308242558;
Thu, 26 Oct 2023 01:17:22 -0700 (PDT)
X-Received: by 2002:a05:6870:818f:b0:1e9:aa5d:9072 with SMTP id
k15-20020a056870818f00b001e9aa5d9072mr8401543oae.8.1698308242284; Thu, 26 Oct
2023 01:17:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 26 Oct 2023 01:17:21 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=134.147.140.120; posting-account=xGxOzwoAAABeIJmJjpb5Rq79rhMa61NG
NNTP-Posting-Host: 134.147.140.120
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dfd79a75-f3a6-4c81-a6e4-d63915f61549n@googlegroups.com>
Subject: Plotting multiple datsets
From: christin...@gmail.com (christina aruvickal)
Injection-Date: Thu, 26 Oct 2023 08:17:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1749
 by: christina aruvickal - Thu, 26 Oct 2023 08:17 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

Re: Plotting multiple datsets

<uhdae5$1g13e$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=164&group=comp.graphics.apps.gnuplot#164

  copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Plotting multiple datsets
Date: Thu, 26 Oct 2023 11:10:28 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <uhdae5$1g13e$1@dont-email.me>
References: <dfd79a75-f3a6-4c81-a6e4-d63915f61549n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 Oct 2023 09:10:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4b3c27c00d17975d3a86ac4d40e35f8f";
logging-data="1573998"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PnzUjhPrZvT7kbxW509Yn1+ZefO3lu5Q="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jUaCmeDIsS5fYxPbPY4qOr10cgA=
Content-Language: de-DE, en-GB
In-Reply-To: <dfd79a75-f3a6-4c81-a6e4-d63915f61549n@googlegroups.com>
 by: Jörg Buchholz - Thu, 26 Oct 2023 09:10 UTC

On 26.10.2023 10:17, christina aruvickal wrote:
> 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)

plot 'File1' u 1:6, 'File2' u ($1 > 2300 ? $1:1/0):6

This plot all data from "File1" and all data from "File2" where col 1 is
greater than 2300.

Jörg

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor