|
From: Jon <dev...@gm...> - 2011-01-31 08:20:46
|
Thanks! The code was run on a machine with gnuplot versioned v4.2. With your hint, I checked it on another machine with the newest gnuplot, and it works! This is really nice! Sincerely, Jon On Sat, Jan 29, 2011 at 10:13 AM, Thomas Sefzick <t.s...@fz...>wrote: > > use an actual version of gnuplot, version >= 4.4 > > > bsmile wrote: > > > > Dear All, > > > > I am trying to carry out sum functionality on a dataset, and wonder how I > > can possible do that. > > > > Suppose I have dataset aaa.txt > > 1 4 > > 2 5 > > 3 4 > > 4 9 > > 5 10 > > > > and I would like to get sum of the second column. I guess the basic idea > > is > > to use set term dumb, and thought of something like this > > > > set term dumb > > s=0 > > plot 'aaa.txt' u (s=s+$2,$1):2 w l > > > > but it complains that ')' expected. I kind of know why as everything in > > the > > plot statement is treated as character expression, and might not > recognize > > "+" operation. Please correct me if wrong. > > > > So what else can I do to get me out of this problem? > > > > Many thanks!! > > > > Sincerely, > > Jon > > > ------------------------------------------------------------------------------ > > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > > Finally, a world-class log management solution at an even better > > price-free! > > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > > February 28th, so secure your free ArcSight Logger TODAY! > > http://p.sf.net/sfu/arcsight-sfd2d > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: > http://old.nabble.com/how-to-carry-sum-%28or-similar-math-operation%29-with-gnuplot-tp30792841p30795160.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better > price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |