<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Two factors are important: the size of your output image, and the order in which the colored polygons and black outlines are drawn.&nbsp;</div><div><br></div><div>The page coordinates of the polygons and lines (in 11x8.5 space) are converted to integer-valued pixel coordinates and drawn accordingly. The bigger the image, the more precision you'll get in that conversion and the better your image will look.&nbsp;</div><div><br></div><div>The second factor is probably more important -- the graphical elements are rendered to the output image in the same order that they are drawn to the screen. If your cbar.gs scripts draws the ladder of black outlines first, then overlays the color polygons, the polygons may cover the outlines if the image resolution is not sufficiently high to resolve the difference in the page coordinates between the outlines and the colored polygons. And it may be that the page coordinates of the outlines and polygons are the same, in which case what you draw first will be buried by what you draw second.&nbsp;</div><div><br></div><div>Try a test with just a filled rectangle and its outline, then use printim with a 110x850 image and 1100x850 and you'll see how these two factors come into play. How it looks in the display window, and how it looks in the printim output may not be exactly the same. That is because the display window is drawn with X11 library, and printim uses the gd library to render the image. Your version of cbar.gs may need some revision to draw the outlines on top of the colored polygons.&nbsp;</div><div>--Jennifer</div><br><div><div>On Jan 15, 2011, at 4:34 PM, Jeffrey Duda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Grads users,<br>I hadn't heard a response on this issue and it's been awhile.&nbsp; I was wondering if anyone else has noticed this or knows why it's happening and/or how to stop it.&nbsp; Thank you.<br><br>Jeff Duda<br> <br><div class="gmail_quote">On Thu, Dec 16, 2010 at 1:38 PM, Jeffrey Duda <span dir="ltr">&lt;<a href="mailto:jdduda@iastate.edu">jdduda@iastate.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hello,<br>I keep seeing strange things when I try to plot a colored filled polygon and then save the image, in particular within a colorbar.&nbsp; I'm using the color bar script provided in the scripting library page, <a href="http://cbar.gs" target="_blank">cbar.gs</a>.&nbsp; The retangles always seem to "bleed" over the top line of the colorbar (seen only in horizontal color bars).&nbsp; The original script doesn't have a black outline drawn on the top of a horizontal color bar (well it does, but it is covered up by the filled colored polygons).&nbsp; I thought that made the color bar look tacky, which is why I modified the script ever so slightly to get that top line to appear.&nbsp; As an example, I've attached 3 images all of the same data, but presented in different ways to show how the color bar acts.<br clear="all"> <br>grads.png is a screenshot of my grads window (using the print screen key) showing the color bar appearing correctly as I want it to.<br><br>2.gif was obtained by issuing the command "printim 2.gif" using the same image as is shown in grads.png<br> <br>3.gif is the same thing as 2.gif only sized as 5000 x 5000 pixels.&nbsp; It shows the overlap is still there, but to much less of an extent relative to the size of the image.&nbsp; This makes me wonder that the overlap is some default like "1 pixel greater no matter what the size" so that it doesn't show up as well for larger images.<br> <br>Can someone explain to me this behavior and how to keep the color bar colors from overlapping the top line of the color bar in printed images that are obtained using printim?&nbsp; Thanks.<br><br>Jeff Duda<br><font color="#888888"><br> -- <br>Jeff Duda<br> Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br> </font></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br> _______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></body></html>