From: Clement L. <the...@gm...> - 2013-08-23 07:36:32
|
Hello, I did this yesterday, in fact. In gnuplot, issue: plot "< sort -kn3nr datafile" u 1:3 w lp This should be roughly what you want. Clem On 22 August 2013 08:54, Jian-Ming Zheng <jm...@gm...> wrote: > Hi, > > I have a data file which contains several columns. The data in the > file are not sorted. I want to sort the data of a column (for example, > column 3) and plot the data. I use UNIX command sort to sort the data > and then use gnuplot to plot the data. > > $ sort -k3nr datafile > sortfile # sort column 3 in decreasing order > gnuplot> plot 'sortfile' u 3 w linespoints # plot sorted values of > column 3 at x = 0, 1, 2, … > > Is it possible to directly sort the data and plot the results in > gnuplot? If yes, how to do it? > > Thanks > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |