|
From: Corey H. <bug...@fa...> - 2009-06-11 05:48:18
|
Hello, 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 |
|
From: Thomas S. <t.s...@fz...> - 2009-06-11 11:16:02
|
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. Corey Hickey wrote: > > Hello, > > 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 > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/problem-specifying-fill-color-for-boxes-tp23975642p23979365.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Corey H. <bug...@fa...> - 2009-06-12 04:30:36
Attachments:
fix_corner.diff
|
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 |
|
From: Corey H. <bug...@fa...> - 2009-09-04 08:34:08
|
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. 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 |