X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 24 Aug 2007 11:31 AM by  anon
box line gif plots produced using polyfill uneven
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
24 Aug 2007 11:31 AM
    I have an odd problem no one here can seem to help with. I am producing box line plots using polyfill to create and fill the boxes. I have the correct x coordinates for each box. When I produce a gif or png plot directly, I get lines of different apparent widths for each year in my timeseries. If I produce a postscript plot instead and then convert it using "xv" and then save the gif output, the lines look fine. If I convert the plot with convert, I get uneven lines. It seems like some kind of resolution issue but I'm not sure how to fix it. I do know my polyfill command is correct. I want gif or png output and I need to create the plots automatically so I can't do the xv conversion. Any ideas? I can post some code if necessary.

    Deleted User



    New Member


    Posts:
    New Member


    --
    24 Aug 2007 11:31 AM
    You may be having an "antialiasing" problem. Are the variations in the widths of your lines just 1 pixel? I've written a set of routines which are substitutes for several of the original IDL plotting routines. You can download the set from the "code contribution library" under the plotting section: http://www.ittvis.com/cod...product=IDL&catid=19 Unfortunately I don't have one for "polyfill", but perhaps you can create what you want with the "plots" command (or the antialiased version called "plotssmooth") using an explicit line thickness.
    You are not authorized to post a reply.