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

Home » Public Forums » archive » "gridPositions" not work correct with "Z" device?
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
"gridPositions" not work correct with "Z" device? [message #76680] Thu, 23 June 2011 09:51 Go to next message
Dave[4] is currently offline  Dave[4]
Messages: 38
Registered: December 2007
Member
Hi, David:

I use the "GridPositions" function with the following code. Why
every time I
call the "GridPositions", I got a different results and the plot
regions get smaller.

IDL> set_plot,'Z'
IDL> print,gridPositions(3, 3, XEXTENT=[0.01, 0.99],
YEXTENT=[0.08,0.92], XMARGIN=0.001, YMARGIN=0.001)
% Compiled module: GRIDPOSITIONS.
0.0100112 0.640017 0.317916 0.894992
0.336678 0.640017 0.644582 0.894992
0.663345 0.640017 0.971249 0.894992
0.0100112 0.360017 0.317916 0.614992
0.336678 0.360017 0.644582 0.614992
0.663345 0.360017 0.971249 0.614992
0.0100112 0.0800167 0.317916 0.334992
0.336678 0.0800167 0.644582 0.334992
0.663345 0.0800167 0.971249 0.334992
IDL> print,gridPositions(3, 3, XEXTENT=[0.01, 0.99],
YEXTENT=[0.08,0.92], XMARGIN=0.001, YMARGIN=0.001)
0.0100113 0.640019 0.317518 0.890182
0.336678 0.640019 0.644185 0.890182
0.663345 0.640019 0.970852 0.890182
0.0100113 0.360019 0.317518 0.610182
0.336678 0.360019 0.644185 0.610182
0.663345 0.360019 0.970852 0.610182
0.0100113 0.0800191 0.317518 0.330182
0.336678 0.0800191 0.644185 0.330182
0.663345 0.0800191 0.970852 0.330182
IDL> print,gridPositions(3, 3, XEXTENT=[0.01, 0.99],
YEXTENT=[0.08,0.92], XMARGIN=0.001, YMARGIN=0.001)
0.0100114 0.640022 0.317104 0.884386
0.336678 0.640022 0.643771 0.884386
0.663345 0.640022 0.970438 0.884386
0.0100114 0.360022 0.317104 0.604386
0.336678 0.360022 0.643771 0.604386
0.663345 0.360022 0.970438 0.604386
0.0100114 0.0800220 0.317104 0.324386
0.336678 0.0800220 0.643771 0.324386
0.663345 0.0800220 0.970438 0.324386
Re: "gridPositions" not work correct with "Z" device? [message #76748 is a reply to message #76680] Sat, 25 June 2011 07:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dave writes:

> I use the "GridPositions" function with the following code. Why
> every time I
> call the "GridPositions", I got a different results and the plot
> regions get smaller.

Yes, this was a bug. Fixed now:

http://www.idlcoyote.com/programs/gridpositions.pro

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: PostScript Window Size
Next Topic: Array subscript for VECTOR must have same size as source expression

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

Current Time: Fri Oct 10 01:57:01 PDT 2025

Total time taken to generate the page: 0.16329 seconds