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

Home » Public Forums » archive » Re: PostScript Device GET_DECOMPOSED Weirdness
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: PostScript Device GET_DECOMPOSED Weirdness [message #74374] Wed, 12 January 2011 22:13
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paulo Penteado writes:

> I think the issue is not whether PS can be decomposed, it is simply
> whether device can inform the state, with get_decomposed. As I
> remember, this was added in 7.something. I checked in my old 7.1.1 and
> it works:

Humm. Bummer. How do you write code that works for IDL 7.1.1,
but not IDL 7.1?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: PostScript Device GET_DECOMPOSED Weirdness [message #74375 is a reply to message #74374] Wed, 12 January 2011 19:48 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jan 13, 1:00 am, Ben Tupper <ben.bigh...@gmail.com> wrote:
> Regardless of the documentation confusion, it seems like a bug to me.
> The language in the description of the DECOMPOSED keyword makes is seem
> unambiguous that PostScript should have a decompose-able state.

I think the issue is not whether PS can be decomposed, it is simply
whether device can inform the state, with get_decomposed. As I
remember, this was added in 7.something. I checked in my old 7.1.1 and
it works:

IDL> print,!version
{ x86_64 linux unix linux 7.1.1 Aug 21 2009 64 64}
IDL> set_plot, 'ps'
IDL> device, decomposed=1
IDL> device, get_decomposed=state
IDL> help,state
STATE LONG = 1
IDL> device, decomposed=0
IDL> device, get_decomposed=state
IDL> help,state
STATE LONG = 0

I do not have any older versions to test.
Re: PostScript Device GET_DECOMPOSED Weirdness [message #74376 is a reply to message #74375] Wed, 12 January 2011 19:00 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
Hi,

On 1/12/11 9:45 PM, David Fanning wrote:
> Folks,
>
> OK, does this make *any* sense to anyone!?
>
> IDL> print, !version
> { x86 linux unix linux 7.1 Apr 21 2009 32 64}
> IDL> thisdevice = !d.name
> IDL> set_plot, 'ps'
> IDL> device, decomposed=1
> IDL> device, get_decomposed=state
> % Keyword GET_DECOMPOSED not allowed in call to: DEVICE
> % Execution halted at: $MAIN$
> IDL> set_plot, thisdevice
>
> How is this possible? Wasn't this keyword added to
> ALL versions of IDL in 7.1?
>


IDL> print, !version
{ x86_64 darwin unix Mac OS X 7.1 Apr 21 2009 64 64}
IDL> thisdevice = !d.name
IDL> set_plot, 'ps'
IDL> device, decomposed=1
IDL> device, get_decomposed=state
% Keyword GET_DECOMPOSED not allowed in call to: DEVICE
% Execution halted at: $MAIN$
IDL> set_plot, thisdevice


There seems to be a documentation bug in my help file -

IDL> ?device

In the list of keywords at the top of the help window I see...

GET_DECOMPOSED (WIN, X)


If I click on the link to get to the details of the keyword I see this...


GET_DECOMPOSED

(PS, WIN, X, Z)


Regardless of the documentation confusion, it seems like a bug to me.
The language in the description of the DECOMPOSED keyword makes is seem
unambiguous that PostScript should have a decompose-able state.

Bummer.


Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PostScript Device GET_DECOMPOSED Weirdness
Next Topic: SVM with ENVI

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

Current Time: Fri Oct 10 14:46:12 PDT 2025

Total time taken to generate the page: 0.87923 seconds