Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4236

Re: double y plot

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
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> (permalink)
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>
Xref csiph.com comp.graphics.apps.gnuplot:4236

Show key headers only | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

double y  plot alberto <voodoo.bender@gmail.com> - 2019-10-01 07:05 -0700
  Re: double y plot Karl Ratzsch <mail.kfr@gmx.net> - 2019-10-02 08:57 +0200

csiph-web