comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Problem with Polar_contour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problem with Polar_contour [message #62071] Mon, 25 August 2008 14:46 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tarequeaziz@gmail.com writes:

> As per your advice, I checked it. My device is set as "WIN"
> here's what I got:
>
>
> "Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z
> Current graphics device: WIN
> Screen Resolution: 1680x1050
> Simultaneously displayable colors: 16777216
> Number of allowed color values: 16777216
> System colors reserved by Windows: 0
> IDL Color Table Entries: 256
> NOTE: this is a TrueColor device
> NOT using Decomposed color
> Graphics Function: 3 (copy)
> Current Font: System, Current TrueType Font: <default>
> Default Backing Store: None. "
>
>
> What do you think???

I think your colleague runs on LIXUX machines and programs
accordingly. :-)

Windows can certainly accept a DEVICE, RETAIN=0 command, so
I don't know why that should fail. Still smacks of PostScript
to me. DEVICE, TRUE_COLOR=xxx is going to fail on Windows,
since that is not how you set up a True-Color device on Windows.
And, anyway, as you can see, you already ARE a 24-bit device,
so the command is unnecessary.

There isn't a SET_PLOT, 'X' somewhere in the code, is there?

I really don't know. Strange errors. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Problem with Polar_contour [message #62073 is a reply to message #62071] Mon, 25 August 2008 14:16 Go to previous messageGo to next message
tarequeaziz is currently offline  tarequeaziz
Messages: 20
Registered: November 2007
Junior Member
On Aug 25, 3:53 pm, David Fanning <n...@dfanning.com> wrote:
> tarequea...@gmail.com writes:
>> Now when he runs it in his machine (with IDL version 6.2) it just
>> works like a charm but the same code breaks down when I want to run on
>> machine (with IDL 7.0).
>
>> As I showed on the code, program breaks down at weird places, like
>> "DEVICE,RETAIN=0"( shown above). It says that, retain is NOT allowed
>> for device command, how ridiculous!!!!!
>
>> Even if I circumvent this area, when it gets down to polar_contour
>> command, it says, it cannot plot since the points are collinear !! How
>> come then it works on his machine?????
>
>> As far as I can see, the code seems alright. I just cannot figure out
>> why it is breaking down on my machine.
>
> My guess is your device is "PS" and his device is "X" or "WIN".
> These commands are not allowed in the PostScript device.
> To see what device you are in, type this:
>
>   HELP, /DEVICE
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thanks Dave,


I really appreciated your prompt reply!!!

As per your advice, I checked it. My device is set as "WIN"
here's what I got:


"Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z
Current graphics device: WIN
Screen Resolution: 1680x1050
Simultaneously displayable colors: 16777216
Number of allowed color values: 16777216
System colors reserved by Windows: 0
IDL Color Table Entries: 256
NOTE: this is a TrueColor device
NOT using Decomposed color
Graphics Function: 3 (copy)
Current Font: System, Current TrueType Font: <default>
Default Backing Store: None. "


What do you think???


Best,

T
Re: Problem with Polar_contour [message #62080 is a reply to message #62073] Mon, 25 August 2008 12:53 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
tarequeaziz@gmail.com writes:

> Now when he runs it in his machine (with IDL version 6.2) it just
> works like a charm but the same code breaks down when I want to run on
> machine (with IDL 7.0).
>
> As I showed on the code, program breaks down at weird places, like
> "DEVICE,RETAIN=0"( shown above). It says that, retain is NOT allowed
> for device command, how ridiculous!!!!!
>
> Even if I circumvent this area, when it gets down to polar_contour
> command, it says, it cannot plot since the points are collinear !! How
> come then it works on his machine?????
>
> As far as I can see, the code seems alright. I just cannot figure out
> why it is breaking down on my machine.

My guess is your device is "PS" and his device is "X" or "WIN".
These commands are not allowed in the PostScript device.
To see what device you are in, type this:

HELP, /DEVICE

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Problem with Polar_contour [message #62170 is a reply to message #62071] Mon, 25 August 2008 14:57 Go to previous message
tarequeaziz is currently offline  tarequeaziz
Messages: 20
Registered: November 2007
Junior Member
On Aug 25, 5:46 pm, David Fanning <n...@dfanning.com> wrote:
> tarequea...@gmail.com writes:
>> As per your advice, I checked it. My device is set as "WIN"
>> here's what I got:
>
>> "Available Graphics Devices: CGM HP METAFILE NULL PCL PRINTER PS WIN Z
>> Current graphics device: WIN
>>     Screen Resolution: 1680x1050
>>     Simultaneously displayable colors: 16777216
>>     Number of allowed color values: 16777216
>>     System colors reserved by Windows: 0
>>     IDL Color Table Entries: 256
>>     NOTE: this is a TrueColor device
>>     NOT using Decomposed color
>>     Graphics Function: 3 (copy)
>>     Current Font: System,  Current TrueType Font: <default>
>>     Default Backing Store: None.  "
>
>> What do you think???
>
> I think your colleague runs on LIXUX machines and programs
> accordingly. :-)
>
> Windows can certainly accept a DEVICE, RETAIN=0 command, so
> I don't know why that should fail. Still smacks of PostScript
> to me. DEVICE, TRUE_COLOR=xxx is going to fail on Windows,
> since that is not how you set up a True-Color device on Windows.
> And, anyway, as you can see, you already ARE a 24-bit device,
> so the command is unnecessary.
>
> There isn't a SET_PLOT, 'X' somewhere in the code, is there?
>
> I really don't know. Strange errors. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")


My God....!

You are RIGHT!!!!!

Its true that my buddy works in Linux. and yes, there is a
'set_plot,x' command.

Actually here's the rest of the code( this starts right after the
polar_contour command):


"
..........
close,2

set_plot,'ps'
device, filename=fileout,/encapsulated,/color, xsize=aaax, ysize=aaay

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
polar_contour, z1,t[*,0],r[0,*],/
FILL,nlevels=nlev,title=tit,zr=[-0.3,RMAX]
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

device,/close_file

set_plot,'x'



close,/all "


The 'retain' thing actually is working fine. I guess, I was confusing
the machine too much so it kinda gave up on me....he he he ...

As you mentioned,"True color" command is not being accepted for
obvious reason.

And just to add a little to this, why "polar_contour" gets all berserk
when its in my machine. As you can see, I use set_plot command long
after I used "polar_contour"...?

Does it have to do anything with the conflict between Linux and
Windows? It shouldn't..right???

I am sorry that I am asking too many questions, but you have no idea
how much you are helping me out in this.

:-)
Thanks once again

Best,

T
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: animation_image_doc.pro
Next Topic: Problem with Polar_contour

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 08:16:54 PDT 2025

Total time taken to generate the page: 1.68017 seconds