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

Home » Public Forums » archive » Plot problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plot problem [message #80970 is a reply to message #39989] Fri, 27 July 2012 09:22 Go to previous messageGo to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Friday, July 27, 2012 5:16:21 AM UTC-7, alx wrote:
> Le jeudi 26 juillet 2012 21:34:44 UTC+2, dave poreh a écrit :
>
>> Folks
>
>> hi,
>
>> I have a problem: i have produced a plot (http://imageshack.us/photo/my-images/545/gps2idl.png/) and i need to increase the height of each graph in the figure.
>
>> Can sb help please?
>
>> Cheers,
>
>> Dave
>
>
>
> NG functions are well suited for such a multiplot figure.
>
> For instance, with your example of an array of 9x3 y-functions of the variable x, by using CURRENT and LAYOUT keywords, you can simply write:
>
>
>
> IDL> for i=0,9*3-1 do pl = plot(x, y[*,i], LAYOUT=[3,9,i+1], CURRENT=(i ne 0))
>
>
>
> Here LAYOUT creates the multiplot, CURRENT forces same window to be reused except on the first time.
>
> Then, to manage particular spacing, labels, etc in each sub-plot, you can use any other keywords (MARGIN, AXIS_STYLE, etc...) by indexing them with some logical function of i.
>
> For instance, to suppress axes on subplots which are not lying on the boundaries, you could use AXIS_STYLE=2*(((i mod 3) eq 1) && (i ne 1) && (i ne 25)), in which 2 and 0 means "box-style" and "no axis", respectively.
>
> For details on those keywords, please refer to the IDL documentation.
>
>
>
> Alain.

Works perfect. Thanks, just i need to pass a text for each graph:

!null = text(1,1, 'speed=',$\pm$ num2str, /data, font_size=12)
that stands for *speed= 10+- 0.2* for instance on each graph. Can you help pls.
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to manipulate vectors by the index
Next Topic: Hardware suggestions for IDL/ENVI.

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

Current Time: Fri Oct 10 12:57:50 PDT 2025

Total time taken to generate the page: 1.27789 seconds