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

Home » Public Forums » archive » Re: Using colorbar with multiple plots and !p.multi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Using colorbar with multiple plots and !p.multi [message #54214] Sat, 26 May 2007 03:40
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
teich@atmsci.msrc.sunysb.edu writes:

> Congradulations to your youngest son! I wonder if he has a calling in
> the world of IDL?

He would, but not until it comes with a joystick and a LOT
more action. :-(

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.")
Re: Using colorbar with multiple plots and !p.multi [message #54218 is a reply to message #54214] Fri, 25 May 2007 22:36 Go to previous message
teich is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 6.4 is available
Next Topic: IDLgrPlot and Widget event

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

Current Time: Wed Oct 08 17:38:52 PDT 2025

Total time taken to generate the page: 0.00712 seconds