Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #563
| From | sfeam <sfeam@users.sourceforge.net> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Plotting data points that are out of order |
| Followup-To | comp.graphics.apps.gnuplot |
| Date | 2011-09-01 22:31 -0700 |
| Organization | gnuplot development team |
| Message-ID | <j3pptj$cvc$1@dont-email.me> (permalink) |
| References | <8826525e-b0a0-4928-9356-5154b54a040b@f41g2000yqh.googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
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 '<sort data' with lines > Thanks for any help.
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Next in thread | Find similar
Plotting data points that are out of order Michael McGarry <michael.mcgarry@gmail.com> - 2011-09-01 21:26 -0700
Re: Plotting data points that are out of order sfeam <sfeam@users.sourceforge.net> - 2011-09-01 22:31 -0700
Re: Plotting data points that are out of order Michael McGarry <michael.mcgarry@gmail.com> - 2011-09-02 04:23 -0700
csiph-web