Re: Using colorbar with multiple plots and !p.multi [message #54221 is a reply to message #54218] |
Fri, 25 May 2007 14:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
teich@atmsci.msrc.sunysb.edu writes:
> I am using !p.multi to put multiple plots on a page. I would like to
> put a colorbar underneath some or all of the plots. I am using
> colorbar.pro (David Fanning's). For some reason, I get a colorbar
> that superimposes on the plots.
> This doesn't happen when I specifiy position keyword in the plots, but
> I would rather use !p.multi if at all possible. I do have to specify
> position for the colorbar and use !x.window and !y.window for that
> part. I don't know if I am clear. Can anyone help?
Well, first of all, is there *room* for a colorbar when
you specify multiple plots with !P.MULTI? Unless you
are using a VERY thin colorbar, I can't imagine there
would be.
If there is room, then I would draw all the plots, *then*
put the colorbar on the plots. The reason for this is that
!P.MULTI is setting and interacting with lots of system
variables to do its thing. And Colorbar uses a PLOT command
to annotate the colorbar, so there is a possibility for
unwanted interactions between !P.MULTI and the PLOT in
the Colorbar routine.
I've never tried this, exactly, and graduation is tomorrow
for my youngest son, and I have a house full of family, so...
Let me know.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|