gt; > the imshow command. They may do what you need as well:
> >
> > http://matplotlib.sourceforge.net/api/axes_api.html?highlight=imshow#matplotlib.axes.Axes.imshow
> >
> > As for your first question try the following in ipython with the
> > -pylab flag:
> >
s_api.html?highlight=imshow#matplotlib.axes.Axes.imshow
>
> As for your first question try the following in ipython with the
> -pylab flag:
>
> import numpy as N
> a = N.random.rand(50)
> a*=100
> plot(a)
> ax = gca()
> ax.set_xlim(0,25) # The set_xlim and set_yl
s N
a = N.random.rand(50)
a*=100
plot(a)
ax = gca()
ax.set_xlim(0,25) # The set_xlim and set_ylim may be what you're looking for...
ax.set_ylim(0,50)
show()
--- On Mon, 12/29/08, Christian Lerrahn wrote:
From: Christian Lerrahn
Subject: [Matplotlib-users] Manually limiting value ranges
To:
Hi,
I've been trying to do this for a while but just can't get it to
work. :(
There are 2 things I want to do.
1. I want to limit the value range in a line plot from
matplotlib.pyplot.plot(). I thought that clip_box would do exactly
that but setting something like [[-1,1],[-5,5]] or the like does