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

Home » Public Forums » archive » Re: Common x- and y-axes labels.....
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: Common x- and y-axes labels..... [message #65396 is a reply to message #65394] Mon, 02 March 2009 05:36 Go to previous message
David Gell is currently offline  David Gell
Messages: 29
Registered: January 2009
Junior Member
On Feb 28, 1:38 pm, bobbylough <loughnane.rob...@gmail.com> wrote:
> Dear all,
>
> I was wondering whether it was possible to construct in IDL a common
> x- and y-axis annotation for a matrix of plots. I have a 2*6 matrix of
> plots and would like to produce an figure displaying all 12 plots
> along with a just the one x- and y- labeling, which would be
> positioned somewhere near the centre of each ordinate. Thanks in
> advance.......
>
> Regards,
> Robert.

I assume that the idea is to have twelve plots in two columns with
axis annotations on one plot near the center of the matrix. The code
might look something like

for nI=0,1 do begin
for nJ=0,5 do begin

;;compute position of plot

plot, x[*,ni,nj], y[*,ni,nj], ...

endfor
endfor

You can use the graphics keywords [xy]tickname to suppress the tick
labels on all but the desired plot. You can also use [xy]title to
specify the axis title for the plots you want. In the example above
use something like

xtickname= ((ni eq 1) && nJ eq 2) ? '' : replicate(' ', 30)
xtitle = ((ni eq 1) && nJ eq 2) ? 'this is the x axis' : ' '

If you specify a null string with the xtickname keyword, IDL labels
the ticks, if you specify an array IDL uses the array. So to label the
tickmarks on one axis in the set, supply the null string to xtick name
for the plot you want labeled and an array of blanks for those you
don't.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Get time and date from a server using a socket
Next Topic: the problem of using CALL_EXTERNAL()

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

Current Time: Fri Oct 10 20:02:08 PDT 2025

Total time taken to generate the page: 1.12340 seconds