Re: [Matplotlib-users] Graph gains a blank space at the right hand side

2010-02-23 Thread Jae-Joon Lee
On Mon, Feb 22, 2010 at 11:00 AM, Geoff Bache wrote: > So I guess I have two questions. > 1) Is this a bug? It certainly feels like one... > 2) Is there a workaround / what should I do instead? > Try axessubplot2.autoscale_view(tight=True) Otherwise, you need to manually adjust xlim and ylim.

[Matplotlib-users] Graph gains a blank space at the right hand side

2010-02-22 Thread Geoff Bache
Hi all, I'm having some trouble with graphs ending up wider than I'd like. I'm using matplotlib 0.98.5.2. If I do as follows: import pylab pylab.clf() figure2 = pylab.figure(1) axessubplot2 = pylab.subplot(111) axessubplot2.fill_between([0, 1, 2, 3, 4, 5, 6], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1, 1