Re: TITLE property using object graphics [message #77233] |
Mon, 15 August 2011 10:35  |
Mike Potter
Messages: 19 Registered: August 2008
|
Junior Member |
|
|
On Aug 15, 11:32 am, Mike Potter <m...@orionsound.com> wrote:
> On Aug 15, 8:51 am, Paul van Delst <paul.vande...@noaa.gov> wrote:
>
>
>
>
>
>> Hello,
>
>> IDL> print, !version
>> { x86 linux unix linux 8.1 Mar 9 2011 32 64}
>> IDL> theory = SIN(2.0*FINDGEN(200)*!PI/25.0)*EXP(-0.02*FINDGEN(200))
>> IDL> p1 = plot(theory, title="Test")
>> % Loaded DLM: XML.
>> IDL>
>
>> ...produces the example as expected.
>
>> Does ITTVIS/IDL still support WindowsXP for 8.whatever? There's no useful information on their website (seems you have
>> to login to get the more detailed product info) beyond saying it runs on Microsoft Windows.
>
>> cheers,
>
>> paulv
>
>> Mike Potter wrote:
>>> On Aug 14, 3:24 pm, Mike Potter <m...@orionsound.com> wrote:
>>>> I'm guessing I'm missing something simpe. Being an old-school IDL
>>>> programmer I've decided to explore a bit of the object graphics
>>>> functions. I immediately ran into a problem just cutting and pasting
>>>> from the help file examples. Here's an example:
>
>>>> theory = SIN(2.0*FINDGEN(200)*!PI/25.0)*EXP(-0.02*FINDGEN(200))
>
>>>> p1 = plot(theory, title="Test")
>
>>>> When doing so I get an error message: "PLOT: Graphics window does not
>>>> exist".
>
>>>> If I just do the plot with no title it works fine. If I then try:
>
>>>> p1.TITLE = "Test"
>
>>>> I again get the same error message. If I "Print, P1" it gives me a
>>>> list of the properties; TITLE = <NullObject>
>
>>>> So what's up?
>
>>>> Thanks!
>>>> Mike Potter
>
>>> Additional info:
>
>>> IDL 8.1 - Windows XP- Hide quoted text -
>
>> - Show quoted text -
>
> Hi Paul - yes, 8.1 is supported for Windows XP SP2 and later. I'm all
> up-to-date with updateds, etc.
>
> Mike- Hide quoted text -
>
> - Show quoted text -
Well, I just tried this again today and it works as advertized. I
have no idea what I did to change it's behavior. The only thing I'd
done was to run the two lines of code through IDL 8.0 - logged out
last night and back in this morning, fired up 8.1 and it worked.
Perhaps a variant of "plot" is hiding in some code I ran the other day
- but IDL's default library is first in my PATH list. Thanks to all
who offered help!
Mike Potter
|
|
|