Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: axis range wrong in multiplot - multiplot.gp (1/1) Date: Fri, 13 Mar 2015 19:29:22 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <6fb8de4d-a478-4bc3-944a-b836753b033a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Sat, 14 Mar 2015 02:28:37 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="7bbfccb08e3cb0f92ebf95516f5f5a81"; logging-data="26499"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+fHxT7b/PPiRzubDwPflQ" User-Agent: KNode/4.12.5 Cancel-Lock: sha1:KKp0AO1Cq7BTG6LFy0xYP7045/o= Xref: csiph.com comp.graphics.apps.gnuplot:2813 samoconnor@mac.com wrote: > On my machine, gnuplot --version says "gnuplot 4.6 patchlevel 4". > Does that mean its 4.6.4? > > The following plot results in both y-axes having 10 at the bottom and > 0 at the top: > > set terminal png; > set multiplot layout 2,1; > set yrange [10:0]; plot (5); > set yrange [0:10]; plot (5); > > Adding the "noreverse" option to the second yrange fixes the problem: Ah, I see. That is not exactly the problem I thought you meant. Yes, the "reverse/noreverse" option was (IMHO) a total mess up to and including version 4.6 It was reworked for version 5 and now only affects autoscaling. See the release notes and User Manual section on "Changes in version 5". The nutshell summary: %%% The reverse keyword of the set [axis]range command affects only autoscaling. It does not invert or otherwise alter the meaning of a command such as set xrange [0:1]. If you want to reverse the direction of the x axis in such a case, say instead set xrange [1:0]. %%%