|
From: Ethan M. <eam...@gm...> - 2016-07-05 19:47:16
|
That is almost correct. The test should be against
(this_plot->plot_smooth) rather than smooth_parameter.
I had a different fix in mind, but this one is better. Thanks.
On Tue, Jul 5, 2016 at 2:31 AM, Grothausmann, Roman Dr.
<gro...@mh...> wrote:
>
>
> On 05/07/16 10:03, Grothausmann, Roman Dr. wrote:
>> On 04/07/16 20:17, Ethan Merritt wrote:
>> Understanding, that the work-around is not so suitable for SVGs as it changes
>> the way of plotting I couldn't resist taking a look into the code to find out
>> what is wrong in the first place. I came as far as getting the expected
>> behaviour if y= is specified when applying the changes given by the patch below.
>> However I'm not sufficiently confident in adjusting the code appropriately for
>> cases I'm not familiar with. My guess it that the if statement would need an
>> additional check for kdensity to call need_fill_border and plot_lines.
>
> As far as I understand: smooth_parameter = -1 by default. So possibly this could
> do the trick appropriately:
>
> --- /opt/compilation/gnuplot-5.0.3/src/graphics.c.orig 2016-07-05
> 09:49:40.886329514 +0200
> +++ /opt/compilation/gnuplot-5.0.3/src/graphics.c 2016-07-05 11:26:14.242687554
> +0200
> @@ -763,13 +763,14 @@
> plot_boxes(this_plot, Y_AXIS.term_zero);
> if (bar_layer == LAYER_FRONT)
> plot_bars(this_plot);
> break;
>
> case FILLEDCURVES:
> - if (this_plot->filledcurves_options.closeto == FILLEDCURVES_ATY1
> + if (this_plot->smooth_parameter < 0
> + && this_plot->filledcurves_options.closeto == FILLEDCURVES_ATY1
> || this_plot->filledcurves_options.closeto == FILLEDCURVES_ATY2
> || this_plot->filledcurves_options.closeto == FILLEDCURVES_ATR
> || this_plot->filledcurves_options.closeto == FILLEDCURVES_BETWEEN) {
> plot_betweencurves(this_plot);
> } else {
> plot_filledcurves(this_plot);
>
>
>
> --
> 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
>
> ------------------------------------------------------------------------------
> 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
|