|
From: Grothausmann, R. Dr. <gro...@mh...> - 2016-07-05 09:32:08
|
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
|