Retrying. Sorry if this appears twice.

Hi listees,

I often generate plots using the pylab interface plot() function to
overlay an imshow() image. The minimal script below demonstrates a
problem, which may be a bug, or may be a deliberate change introduced
into mpl 0.91.1. It works fine with mpl 0.90.1 but gives a traceback
with 0.91.1 - it seems not to be happy with the subplot limits.
Commenting out the "note 1" line lets it run and demonstrates my real
question. With scatter(), the first subplot doesn't rescale, but if line
"note 2" is commented out and "note 3" is uncommented, it rescales. How
do I prevent the rescaling? I prefer plot() instead of scatter() in this
case because of the plot origin.

thanks,
Gary R.

--

from pylab import *

rcFig = {'figsize': (2,1),
          'dpi': 256,
          'subplot.hspace': 0.0,
          'subplot.wspace': 0.0,
          'subplot.bottom': 0.0,
          'subplot.left':   0.0,
          'subplot.right':  1.0,
          'subplot.top':    1.0,
          }
rc('figure', **rcFig)    # note 1

subplot(121)
axis('off')
imshow(rand(20,20))
subplot(122)
axis('off')
imshow(rand(20,20))
subplot(121)
scatter([5,10],[5,10])    # note 2
#~ plot([5,10],[5,10], 'o')     # note 3
show()

--



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to