Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4236
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: double y plot |
| Date | 2019-10-02 08:57 +0200 |
| Organization | solani.org |
| Message-ID | <qn1ho6$qeu$1@solani.org> (permalink) |
| References | <b140882a-b03a-41b9-acb2-a248df713b9f@googlegroups.com> |
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 | Next — Previous in thread | Find similar
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