Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: axes x2y1 with filled curves Followup-To: comp.graphics.apps.gnuplot Date: Wed, 21 Dec 2011 10:18:44 -0800 Organization: gnuplot development team Lines: 46 Message-ID: References: <4ef20412$0$6878$e4fe514c@news2.news.xs4all.nl> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Wed, 21 Dec 2011 18:18:46 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="joalffpZlyHxFtpFd/PRrw"; logging-data="30091"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19UTxUV5yfbtX3J1N/pkeNm" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:NQrVOToqB1ZOZNeD4WmOHVcfO70= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:777 Alex van der Spek wrote: > gnuplot> plot '-' using 1:2:3 with filledcurves Disregarding the solid fill, this plots two dependent values (2 and 3) of a shared independent axis (1). > input data ('e' ends) > 1 2 3 > input data ('e' ends) > 10 2 3 > input data ('e' ends) > 10 1 4 > input data ('e' ends) > 20 1 4 > input data ('e' ends) > e > > Works as expected but the same data with > > gnuplot> plot '-' using 3:2:1 axes x2y1 with filledcurves But here the independent axis is (3), while 1 and 2 are dependent values. So no transformation can make this equivalent to the previous case. Note that column 2 is treated as a dependent variable in both cases. Maybe it would be easier to see what is going on by plotting case 1: set style function lines plot foo using 1:2, '' using 1:3 case 2 set style function lines plot foo using 3:1, '' using 3:2 > input data ('e' ends) > 1 2 3 > input data ('e' ends) > 10 2 3 > input data ('e' ends) > 10 1 4 > input data ('e' ends) > 20 1 4 > input data ('e' ends) > e > > produces output I cannot make sense of. It should produce the same type of > 'graph' only rotated clockwise by 90 degrees after scaling the axes. In general gnuplot can only use x as the independent axis. > > Any help or explanation would be appreciated, > Alex van der Spek