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 #80973 is a reply to message #39989] Fri, 27 July 2012 05:16 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
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.
[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: Wed Oct 08 19:00:02 PDT 2025

Total time taken to generate the page: 0.00546 seconds