X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 03 Jun 2018 11:46 PM by  Jenny Lovell
New graphics: plot titles and tick names disappear
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:2
New Member


--
15 Jul 2016 10:45 AM
    I am currently using IDL 8.5.1 (experienced the same issue with 8.4 and 8.5.0) on Windows 10 machine (x64). The code I used follows (which is on https://www.harrisgeospatial.com/docs..., except a bit of modification since BARPLOT does not have DATA keyword) x = FINDGEN(41)/10 - 2 gauss = EXP(-x^2) p = BARPLOT(x, gauss, $ TITLE='Gaussian Distribution',$ YRANGE=[0,1.1]) On the graphic window, the plot does not show any kind of defect. However, whenever I try to export it into other formats, that is, calling CopyWindow method, Save method, or clicking on the little "save" icon on plot window, some of the plot's texts are replaced by black rectangle. Following is what I did to save to a plot, with the same reference with the upper code p.Save, "gaussian.png", BORDER=10, $ RESOLUTION=300, /TRANSPARENT This phenomenon is a bit random; I cannot reproduce the situation. Running exactly the same code repeatedly would yield different results. The code above would probably work fine after I restart my computer. But then again, another code will make similar bug. For example, if I use an existing plot (whose .png save file showed no bug) to change data only by SetData method, then save again, it would destroy my axis titles, and vice versa. Also, I cannot avoid the problem by any means. I tried reducing widths and heights, refreshing window, waiting some secs after refresh, ..., but those measures are not helping. This is by far the worst bug I've ever experienced using IDL. Does anyone know how to resolve this?

    Deleted User



    New Member


    Posts:7
    New Member


    --
    18 Jul 2016 01:58 PM
    I posted about the exact same issue a while ago. Very frustrating when making automated plots. Sorry to say that so far I haven't come up with a fix.

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    21 Jul 2016 04:05 PM
    We have have received reports from user reporting this behavior on Windows 10. We have bug report in our system about this issue (IDL-69561). Hopefully, it will be fixed in a future version of IDL. In the meantime, you can workaround this issue by running IDL in Windows 7 compatibility mode. The link below has instructions on how to run a program in Windows 7 compatibility mode on Windows 10: https://support.microsoft.com/en-us/help/15078/windows-make-older-programs-compatible

    Lyn Doose



    New Member


    Posts:3
    New Member


    --
    01 Mar 2018 04:51 PM
    Is this issue fixed in IDL 8.7 by any chance? Running in compatibility mode does fix the problem for me, but it really slows IDL processing down.

    Lyn Doose



    New Member


    Posts:3
    New Member


    --
    05 Mar 2018 04:21 PM
    A way around this is to save the graphic as a PDF. For me, that avoids the mangling of the text.

    David Starbuck



    Basic Member


    Posts:143
    Basic Member


    --
    08 Mar 2018 12:14 PM
    The issue is still present with IDL 8.7. We found an alternative approach to workaround this issue which is to rotate the text slightly.

    What are you trying to do within IDL that is slower with Windows 7 Compatibility mode? Is it going slower when you try to generate graphics?

    David Starbuck
    HGS

    Lyn Doose



    New Member


    Posts:3
    New Member


    --
    13 Mar 2018 12:45 AM
    Interesting! I will try your fix.

    I haven't isolated where my code runs slower in compatibility mode, but I am generating and saving lots of graphics.

    Jenny Lovell



    New Member


    Posts:3
    New Member


    --
    03 Jun 2018 11:46 PM
    Thanks for the hint on rotating the text. An angle of 0.1 deg seems enough and is small enough not to notice.
    You are not authorized to post a reply.