Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: 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: References: 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: Xref: csiph.com comp.graphics.apps.gnuplot:4236 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