|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
problem specifying fill color for boxesHello,
I want to make a bar chart and specify the color with which each bar is filled. Here's a simplified version of what I have: -------------------------------- set terminal png size 200,200 set style data boxes set style fill solid 1 border -1 plot '-' using 1:2 lt rgb "blue" 1 0 2 4 3 30 e -------------------------------- That works ok for me, except that I end up with a 1-pixel wide "shadow" of blue pixels along the top and right edges of each bar, outside the black outline. See the attached chart.png or 2x.png (size doubled with imagemagick). Note also the thin blue line at X=1, where the Y value is 0. I experimented a bit and determined that not all terminal types behave this way. For example: has a shadow: png, gif, jpeg without shadow: wxt, svg So, am I specifying the color correctly? I can't find any other way to do it. I'm using Debian's gnuplot package, version 4.2.5-1; I also built 4.2.5 and CVS from source, and they both behave the same way. Thanks, Corey ------------------------------------------------------------------------------ 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 |
|
|
Re: problem specifying fill color for boxesit'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.
|
|
|
Re: problem specifying fill color for boxesThomas 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 |
|
|
Re: problem specifying fill color for boxesThomas 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. I never thanked you for fixing this. So... thank you! Sorry the thanks took so long. I hadn't realized the fix was committed to CVS. I tested today's CVS and it works great. -Corey ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gnuplot-info mailing list Gnuplot-info@... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
| Free embeddable forum powered by Nabble | Forum Help |