|
From: Thomas S. <t.s...@fz...> - 2009-02-16 12:21:04
|
omit the line 2009-02-05 04:31:00,0 from your data: plot datafile using 1:($2 <= 0 ? 0/0 : ($2 > 10000 ? 10001 : $2)) smooth bezier with lines title "Smooth Bezier, Capped", \ datafile using 1:($2 <= 0 ? 0/0 : $2) smooth bezier with lines title "Smooth Bezier", \ datafile using 1:($2 > 10000 ? 10001 : $2) with lines title "Lines, Capped", \ datafile using 1:2 with lines title "Lines", \ datafile using 1:2 with dots title "Dots" Alexander Skwar-6 wrote: > > Hi. > > I'm using Gnuplot 4.2.4 and 4.3 CVS (~2009-02-03) to plot some data with > the following plot command: > > plot datafile using 1:($2 > 10000 ? 10001 : $2) smooth bezier with > lines title "Smooth Bezier, Capped", \ > datafile using 1:2 smooth bezier with lines title "Smooth Bezier", \ > datafile using 1:($2 > 10000 ? 10001 : $2) with lines title "Lines, > Capped", \ > datafile using 1:2 with lines title "Lines", \ > datafile using 1:2 with dots title "Dots" > > Doing so, I noticed that there are "holes" in the curves when I use > "smooth bezier". > > Please see samples at (they all show the same data, just different > formats): > > http://public-files.askwar.s3.amazonaws.com/gnuplot-bezier-hole/rpl.svg > http://public-files.askwar.s3.amazonaws.com/gnuplot-bezier-hole/rpl.png > http://public-files.askwar.s3.amazonaws.com/gnuplot-bezier-hole/rpl.svg.png > > On > http://public-files.askwar.s3.amazonaws.com/gnuplot-bezier-hole/rpl.gnuplot > you can find the complete gnuplot file and there's also the CSV datafile > at > http://public-files.askwar.s3.amazonaws.com/gnuplot-bezier-hole/rpl.csv > > The "hole" that I'm talking about is shown for the red curve (the 1st > curve) > at about 05.02.09 04:00 and ends at about 14:00. But as you can see in > the datafile and also in the "curves" using dots or lines, there ARE > datapoints > available during that timeframe. > > It, however, might be so, that indeed there are some tiny holes in the > CSV file. > But it's BY FAR not as big a hole as the smooth bezier curve makes it look > like. > > What is causing these holes in the display? > > Thanks a lot, > Alexander > -- > [ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77 ] > [ Mehr => http://zyb.com/alexws77 ] > [ Chat => Jabber: ale...@ja... | Google Talk: a....@gm... ] > [ Mehr => MSN: ale...@li... | Yahoo!: askwar | ICQ: 350677419 ] > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/%22Holes%22-when-using-Smooth-Bezier--tp22034214p22035845.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |