|
From: Grothausmann, R. Dr. <gro...@mh...> - 2016-07-04 14:11:53
|
On 01/07/16 19:10, Ethan Merritt wrote: > I do not know why the filledcurves style is failing in conjunction with > smoothing, but a work-around is to plot first to a datablock and then plot > the smoothed curve in a separate step: > > set table $SMOOTHED > plot $original_data using col:(weight) smooth kdensity bandwidth sigma > unset table > plot $SMOOTHED using 1:2 with filledcurves y=0 Many thanks Ethan for the quick reply and the work-around. I got it working (https://github.com/romangrothausmann/gnuplot/blob/5f513bf1cf81c1709ff450e2830c8c59b76d2c80/hist-ar%2Bkd.gp) but the resulting plot of the "filled table" is kind of "ragged" when saved to SVG. See attached compressed SVG for the test data created with: gnuplot -e "datafile='test.dat'; outfile='test.svg'; bin=10; sigma=3.5; xmin=0; xmax=180; col=1; sep=','; xlabel='test'" hist-ar+kd.gp Any idea how to avoid this raggedness? > ------------------------------------------------------------------------------ > Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San > Francisco, CA to explore cutting-edge tech and listen to tech luminaries > present their vision of the future. This family event has something for > everyone, including kids. Get more information and register today. > http://sdm.link/attshape > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- Dr. Roman Grothausmann Tomographie und Digitale Bildverarbeitung Tomography and Digital Image Analysis Institut für Funktionelle und Angewandte Anatomie, OE 4120 Medizinische Hochschule Hannover Carl-Neuberg-Str. 1 D-30625 Hannover Tel. +49 511 532-2900 |