subplot/imshow Questions

Hi, I have a plot which is divided into 3x3 subplots, each of
which is generated by imshow. I now want to do the following
and have difficulties finding the appropriate documentation:

1. Display a single title for the entire plot. title() will either
    have no effect or attach the title to a separate subplot.

2. Have the same color scale on each subplot. Is it possible to
    use automatic scaling?

3. Attach a single colorbar to the entire plot, rather than
    9 identical scales to each subplot.

4. Have the labeling of the colorbar use the scientific
    number format. I sometimes have rather small values,
    and colorbar() will display 0.0 throughout the scale.

I'd be grateful for any hints,
Marcel

Marcel,

It sounds like you want something like the attached example. It works on my system based on svn and I expect it will work on a recent official release, but I haven't tried it.

Marcel Oliver wrote:

Hi, I have a plot which is divided into 3x3 subplots, each of
which is generated by imshow. I now want to do the following
and have difficulties finding the appropriate documentation:

1. Display a single title for the entire plot. title() will either
   have no effect or attach the title to a separate subplot.

2. Have the same color scale on each subplot. Is it possible to
   use automatic scaling?

3. Attach a single colorbar to the entire plot, rather than
   9 identical scales to each subplot.

4. Have the labeling of the colorbar use the scientific
   number format. I sometimes have rather small values,
   and colorbar() will display 0.0 throughout the scale.

This part depends on whether you are using svn, which as of this week has a new colorbar, or an earlier mpl release, with the original colorbar. With either you can set the format string: for example, use tickfmt='%.2g' for the old colorbar or format='%.2g' for the new one. The new one should automatically choose a suitable format, but I see there is a problem with that. I have to look into it.

Eric

multi_image.py (1.37 KB)