« Return to Thread: problem specifying fill color for boxes

Re: problem specifying fill color for boxes

by Corey Hickey :: Rate this Message:

Reply to Author | View in Thread

Thomas Sefzick wrote:
> it's an error in 'graphics.c'
>
> you can see the difference when plotting without color specification:
> plot '-' using 1:2
> there everthing is ok.
>
> i'll upload a patch on sorceforge.

Thank you--I didn't know where in the source to look. I found your
description of the problem:
http://sourceforge.net/tracker/?func=detail&aid=2804784&group_id=2055&atid=302055

...and I made a patch (attached). It does seem to have an effect on the
svg terminal, though, and I don't know what would be correct.

Thanks,
Corey

--- gnuplot.orig/src/graphics.c 2009-06-11 19:29:45.000000000 -0700
+++ gnuplot/src/graphics.c 2009-06-11 19:29:52.000000000 -0700
@@ -5417,10 +5417,10 @@
     corner[0].x = x;
     corner[0].y = y;
     corner[1].x = x;
-    corner[1].y = y+h;
-    corner[2].x = x+w;
-    corner[2].y = y+h;
-    corner[3].x = x+w;
+    corner[1].y = y+h - 1;
+    corner[2].x = x+w - 1;
+    corner[2].y = y+h - 1;
+    corner[3].x = x+w - 1;
     corner[3].y = y;
 
     return corner;

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

 « Return to Thread: problem specifying fill color for boxes