Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Unix will self-destruct in five seconds... 4... 3... 2... 1...


computers / comp.graphics.apps.gnuplot / double y plot

SubjectAuthor
* double y plotalberto
`- Re: double y plotKarl Ratzsch

1
Subject: double y plot
From: alberto
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 1 Oct 2019 14:05 UTC
X-Received: by 2002:ac8:2d0f:: with SMTP id n15mr31255499qta.305.1569938712443;
Tue, 01 Oct 2019 07:05:12 -0700 (PDT)
X-Received: by 2002:aca:b286:: with SMTP id b128mr3892110oif.100.1569938712173;
Tue, 01 Oct 2019 07:05:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!feeder.erje.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!o24no6776267qtl.0!news-out.google.com!x7ni449qtf.0!nntp.google.com!o24no6776254qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Tue, 1 Oct 2019 07:05:12 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.206.57.253;
posting-account=-eF7WAoAAACt5PDSlI-9XEDar7KgU_BQ
NNTP-Posting-Host: 193.206.57.253
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b140882a-b03a-41b9-acb2-a248df713b9f@googlegroups.com>
Subject: double y plot
From: voodoo.b...@gmail.com (alberto)
Injection-Date: Tue, 01 Oct 2019 14:05:12 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 24
View all headers
Hi,
I would plot graph with same x axis and different y axis

for an y axis I use

plot [-1:1.5][:] 'trace_300_gnu.txt' using (($1*13.60)-4.64665):(abs($6)), with lines lc rgb 'black' lw 2 lt 1 title "OO"

instead for ather y is
plot [-1:1.5][:] 'trace_300_gnu.txt' using (($1*13.60)-4.64665):(abs($4)), with lines lc rgb 'red' lw 2 lt 1 title "OO"

my trace file is

#       Ef[Ry] T [K]            N         DOS(Ef)           S             s/t               R_H        kappa0         c                 chi
  -0.10884  300.0000   -120.00000000  0.29203720E-09 -0.27291745E-02  0.18886614E+06  0.99875025E+04  0.41056803E+03  0.22423452E-08  0.43598651E-20
  -0.10874  300.0000   -120.00000000  0.30781873E-09 -0.27246426E-02  0.19907287E+06  0.94747283E+04  0.43130045E+03  0.23555532E-08  0.45954698E-20
  -0.10864  300.0000   -120.00000000  0.32445307E-09 -0.27201105E-02  0.20983118E+06  0.89883301E+04  0.45307715E+03  0.24744625E-08  0.48438063E-20
  -0.10854  300.0000   -120.00000000  0.34198632E-09 -0.27155783E-02  0.22117088E+06  0.85269455E+04  0.47595061E+03  0.25993595E-08  0.51055627E-20
  -0.10844  300.0000   -120.00000000  0.36046704E-09 -0.27110460E-02  0.23312337E+06  0.80892875E+04  0.49997592E+03  0.27305447E-08  0.53814641E-20
  -0.10834  300.0000   -120.00000000  0.37994645E-09 -0.27065136E-02  0.24572178E+06  0.76741263E+04  0.52521090E+03  0.28683341E-08  0.56722749E-20
  -0.10824  300.0000   -120.00000000  0.40047850E-09 -0.27019811E-02  0.25900101E+06  0.72802982E+04  0.55171632E+03  0.30130590E-08  0.59788008E-20

regards

Alberto
 


Subject: Re: double y plot
From: Karl Ratzsch
Newsgroups: comp.graphics.apps.gnuplot
Organization: solani.org
Date: Wed, 2 Oct 2019 06:57 UTC
References: 1
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (Karl Ratzsch)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: double y plot
Date: Wed, 2 Oct 2019 08:57:11 +0200
Organization: solani.org
Lines: 29
Message-ID: <qn1ho6$qeu$1@solani.org>
References: <b140882a-b03a-41b9-acb2-a248df713b9f@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: solani.org 1569999430 27102 127.0.0.43 (2 Oct 2019 06:57:10 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Wed, 2 Oct 2019 06:57:10 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
Thunderbird/60.9.0
Content-Language: de-DE-1901
Cancel-Lock: sha1:dLc4bMrbNL785Jxes2Qa7Y4gJyw=
X-User-ID: eJwFwYEBwCAIA7CXQGg7zwHU/09YgqBzlAQTD6/dy7bPN1kS+lCHjDsorVmA3ICK1uxrhh8VjBCV
In-Reply-To: <b140882a-b03a-41b9-acb2-a248df713b9f@googlegroups.com>
View all headers
Am 01.10.2019 um 16:05 schrieb alberto:
Hi,
I would plot graph with same x axis and different y axis

for an y axis I use

plot [-1:1.5][:] 'trace_300_gnu.txt' using (($1*13.60)-4.64665):(abs($6)), with lines lc rgb 'black' lw 2 lt 1 title "OO"

instead for ather y is
plot [-1:1.5][:] 'trace_300_gnu.txt' using (($1*13.60)-4.64665):(abs($4)), with lines lc rgb 'red' lw 2 lt 1 title "OO"

You should perhaps give them a different title, but the general
syntax is

  set xr [1:1.5]
  plot firstdata
  replot seconddata

You can give the range specifiers inline, but only with the first plot.

Or in one line

   plot [a:b] dataf using 1:2, dataf using 1:3, dataf using 1:4

and you can break the line with backslashes

And a quick look into the help would have told you the same ;)

    Karl


1
rocksolid light 0.7.2
clearneti2ptor