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

Home » Public Forums » archive » Re: Multiplot-like in new graphics
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: Multiplot-like in new graphics [message #72591] Thu, 23 September 2010 15:10 Go to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Sep 23, 6:20 pm, Matt Haffner <matt.haff...@gmail.com> wrote:
> I wish they would have expanded TICKLAYOUT to simply suppress labels
> but keep ticks, though. I still had to use blank TICKNAME arrays to
> get that to work properly.

I was thinking just that a few minutes ago. I was thinking in using
using layout, but that would give an equal area to each panel. But
those in the bottom line and left row would need different sizes, to
keep the data area of constant size, while leaving some space for the
labels. The alternative would be to leave the panels equal, but then
the left row and bottom line would have smaller data areas. So I am
going with position.

Also, I want to allow for setting a global title, and single x and y
titles for the whole grid (something that in DG already required me to
make changes to multiplot). Then I may also encounter the issue of
overlapping labels (say, from the top y label of the bottom plot
geting over the bottom y label of the plot above it), which also
required me to make some changes to multiplot.
Re: Multiplot-like in new graphics [message #72593 is a reply to message #72591] Thu, 23 September 2010 14:20 Go to previous messageGo to next message
Matt Haffner is currently offline  Matt Haffner
Messages: 34
Registered: October 2000
Member
Not that I've found yet. I made one yesterday with LAYOUT and MARGIN,
which is now in sensible, normalized units instead of character
widths. Since MARGIN is relative to the plot window defined by LAYOUT,
I found using that combo much easier than defining everything from
scratch using POSITION. I rarely got good results with !P.MULTI/MARGIN
in direct graphics, so that's an improvement.

I wish they would have expanded TICKLAYOUT to simply suppress labels
but keep ticks, though. I still had to use blank TICKNAME arrays to
get that to work properly.

mh

On Sep 23, 3:53 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> From what I could see, it seems that IDL 8 still does not have
> functionality like multiplot (http://idlastro.gsfc.nasa.gov/ftp/pro/
> plot/multiplot.pro) provides. So I decided to make a new class,
> inheriting from plot, where multiple plots get nicely put together,
> with only those on the left having y labels, and only those on the
> bottom having x labels.
>
> Am I right in thinking that there is no such feature built-in? I just
> do not want to find out later that I am writing something that is
> already there.
Re: Multiplot-like in new graphics [message #73255 is a reply to message #72591] Thu, 28 October 2010 15:16 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Sep 23, 8:10 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Sep 23, 6:20 pm, Matt Haffner <matt.haff...@gmail.com> wrote:
>
>> I wish they would have expanded TICKLAYOUT to simply suppress labels
>> but keep ticks, though. I still had to use blank TICKNAME arrays to
>> get that to work properly.
>
> I was thinking just that a few minutes ago. I was thinking in using
> using layout, but that would give an equal area to each panel. But
> those in the bottom line and left row would need different sizes, to
> keep the data area of constant size, while leaving some space for the
> labels. The alternative would be to leave the panels equal, but then
> the left row and bottom line would have smaller data areas. So I am
> going with position.
>
> Also, I want to allow for setting a global title, and single x and y
> titles for the whole grid (something that in DG already required me to
> make changes tomultiplot). Then I may also encounter the issue of
> overlapping labels (say, from the top y label of the bottom plot
> geting over the bottom y label of the plot above it), which also
> required me to make some changes tomultiplot.

The class (pp_multiplot) is now available at

http://www.ppenteado.net/idl/pp_multiplot__define.html

As usual, the source file is on the same location, just with the .pro
extension.

It allows for columns/lines of different widths, single x/y titles,
synchronization of x/y ranges and axes properties, and does not shrink
the left column or the bottom line, due to the space taken by the
axes.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL 8.0.1 now available
Next Topic: IDL 8.0.1 Bugs Fixed

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

Current Time: Wed Oct 08 16:04:01 PDT 2025

Total time taken to generate the page: 0.00427 seconds