|
Re: Using colorbar with multiple plots and !p.multi [message #54218 is a reply to message #54214] |
Fri, 25 May 2007 22:36  |
teich
Messages: 33 Registered: May 2007
|
Member |
|
|
On May 25, 5:53 pm, David Fanning <n...@dfanning.com> wrote:
> t...@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.")
Thanks David, I will try that approach and see what I get.
Congradulations to your youngest son! I wonder if he has a calling in
the world of IDL?
Howie
|
|
|
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.")
|
|
|