|
From: Jon <dev...@gm...> - 2010-11-30 20:18:36
|
Clever trick! Many thanks! Jon On Tue, Nov 30, 2010 at 2:30 AM, Thomas Sefzick <t.s...@fz...>wrote: > > removing the unwanted points or replacing them by the average of the > y-values of the adjacent points is the same, at least for discrete gaps. > > you could store the last valid point and plot it instead of the unwanted > one. > > xlast=ylast=NaN > p 'aa' u (($2>5)?(xlast=$1,xlast):xlast):(($2>5)?(ylast=$2,ylast):ylast) w > l > > > bsmile wrote: > > > > Dear members, > > > > I am trying to skip data which is beyond the valid range. The usual way > > like > > > > > > p 'aa' u 1:(($2>5)?$2:1/0) w l > > > > leaves in the figure broken lines, which does not look very good. > > > > I am wondering whether I can do the following two ways > > > > (1) remove these points on the x axis? > > (2) reset the value of these points as average of the nearby two > > points(one > > before it and one after it)? > > > > Thanks, > > > > Sincerely, > > Jon > > > ------------------------------------------------------------------------------ > > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > > Tap into the largest installed PC base & get more eyes on your game by > > optimizing for Intel(R) Graphics Technology. Get started today with the > > Intel(R) Software Partner Program. Five $500 cash prizes are up for > grabs. > > http://p.sf.net/sfu/intelisp-dev2dev > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: > http://old.nabble.com/ignore-invalid-data-from-an-input-dataset-tp30336749p30337764.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |