PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 Mar 2018 12:45 AM by  Lyn Doose
New graphics: plot titles and tick names disappear
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Hojin Cho



New Member


Posts:
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?

    Steve Hostetler



    New Member


    Posts:
    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.

    David Starbuck



    Basic Member


    Posts:133
    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...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:133
    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.
    You are not authorized to post a reply.


    MOST RECENT

    Extract Actionable Information with Advanced ENVI Image Analytics on GBDX | Live Webinar

    3/13/2018

    Live Webinar hosted by DigitalGlobe | April 5 ENVI analytics are available directly within... more »

    ENVI Crop Science | DEMO

    3/13/2018

    Watch this video for a demonstration of ENVI Crop Science and learn about the features available in the... more »

    SIGN UP & STAY INFORMED

    Sign up to receive the latest news, events, technologies and special offers.

    SIGN ME UP