Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Jamie Rees Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Changing x-axis plot from right to left to left to right Date: Thu, 16 Aug 2012 08:33:49 -0700 (PDT) Organization: http://groups.google.com Lines: 45 Message-ID: <4dbdcabe-5d79-4085-8afc-127f4dcf0c9b@googlegroups.com> References: <4d60f00e-a5d4-4905-98a8-820335c7a6e0@googlegroups.com> NNTP-Posting-Host: 84.45.184.202 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1345131698 19961 127.0.0.1 (16 Aug 2012 15:41:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Aug 2012 15:41:38 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=84.45.184.202; posting-account=5t1e-AoAAADdhPdmMt-8qBLGKjeo_gAM User-Agent: G2/1.0 Xref: csiph.com comp.graphics.apps.gnuplot:1332 On Tuesday, August 14, 2012 6:12:33 PM UTC+1, Hans-Bernhard Br=F6ker wrote: > On 14.08.2012 17:52, Jamie Rees wrote: >=20 >=20 >=20 > > For mathematical reasons, I need to change the way that gnuplots my >=20 > > data along the X axis from right to left to left to right (that is, >=20 > > at the minute it plots from 20 down to 1, not from 1 to 20) >=20 >=20 >=20 > That makes no sense whatsoever. gnuplot generates some kind of picture.= =20 >=20 > It makes absolutely no difference whatsoever whether a line was drawn= =20 >=20 > from left to right or right to left --- it'll be the same line in the=20 >=20 > end, consisisting of exactly the same pixels being coloured. >=20 >=20 >=20 > So since this doesn't make sense, maybe you should tell us what your=20 >=20 > actual problem is, so we can find out how that might be solved. I'm using gnuplot in conjunction with a dotNet application which has a SQL = Server backend. I am plotting data stored on the SQL Server. I need to be able to manipulate the data being plotted on the graph. I need= to be able to draw a line which steps down from left to right, when the d= ata may include peaks and troughs which would otherwise mean the graph woul= d go up and down.=20 I've worked out that I can do this is I check to see whether if the previou= s next value along is higher than the previous, and if it is, assume the va= lue of the previous and then plot a straight line.=20 Make much sense? Thanks Jamie