Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plotting data points that are out of order Followup-To: comp.graphics.apps.gnuplot Date: Thu, 01 Sep 2011 22:31:26 -0700 Organization: gnuplot development team Lines: 39 Message-ID: References: <8826525e-b0a0-4928-9356-5154b54a040b@f41g2000yqh.googlegroups.com> Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Fri, 2 Sep 2011 05:34:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="a5sqwvDD9P994JK/mw/xtg"; logging-data="13292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ApGD9NDS6ED12p0EcRzJs" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:ijoNG/HK7SCMlY1oTuQkqIt1iyQ= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:563 Michael McGarry wrote: > Hi, > > I'd like to plot a data file that has the points out of order. I'm > using gnuplot now and it is plotting the points in the order in the > file. > > Here is the data file contents: > > 0.8 24 > 0.7 20 > 0.9 32 > 0.5 16 > 0.3 12 > 0.6 18 > 0.2 5 > 0.4 14 > 0.1 2 > > Does anyone know how I can get gnuplot to plot this data correctly? You haven't really said what "correctly" means in this case. I'm assuming you mean "sorted on the values in the first column". > I'm hoping I do not have to use 'sort' to sort the lines. What's wrong with sort? Anyhow, perhaps you want plot 'data' smooth unique with lines But that has side effects you might or might not want. Using 'sort' might indeed be a better option: plot ' Thanks for any help.