# Using bounds on plot axises. Not clear how this works?

The segment below is supposed to plot two columns of (x,y) data and do it in an area 640x480. Apparently, I'm missing how to use v to get this done. It dies at col.axis(v) with list object has no attribute 'axis'. From looking at some MPL examples, it's not clear to me how one uses axis here. I might have needed axes, but that doesn't work either. Comments?

...
trk_stats = (amin, amax, mean, std, per_tile25, per_tile50, per_tile75)
fig = figure()
v = (0, 640, 0, 480)
print "shapes: ", xy[:,0].shape, xy[:,1].shape
col = ax1.plot(xy[:,0], xy[:,1])
col.axis(v)
show()
print "something for wtw plot"
print
return trk_stats

try

ax1.axis(v)

-JJ

···

On Sun, Feb 7, 2010 at 5:16 PM, Wayne Watson <sierra_mtnview@...209...> wrote:

The segment below is supposed to plot two columns of (x,y) data and do
it in an area 640x480. Apparently, I'm missing how to use v to get this
done. It dies at col.axis(v) with list object has no attribute 'axis'.
From looking at some MPL examples, it's not clear to me how one uses
axis here. I might have needed axes, but that doesn't work either.

...
trk_stats = (amin, amax, mean, std, per_tile25, per_tile50,
per_tile75)
fig = figure()
v = (0, 640, 0, 480)
print "shapes: ", xy[:,0].shape, xy[:,1].shape
col = ax1.plot(xy[:,0], xy[:,1])
col.axis(v)
show()
print "something for wtw plot"
print
return trk_stats

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

Yes, that did it. Thanks. Some of that code I copied from an example, the ax1 part. I guess it's related to subplot. The 1 on ax doesn't make much sense to me. Maybe there was an ax2 in the original, so there were two subplots. So it looks like to manipulate the subplot, one uses ax1 with calls to color the end of lines, or changes the line to dashes? Maybe labels and titles? Although that may be the way pyplot works.

···

On 2/7/2010 3:24 PM, Jae-Joon Lee wrote:

try

ax1.axis(v)

-JJ

On Sun, Feb 7, 2010 at 5:16 PM, Wayne Watson > <sierra_mtnview@...209...> wrote:

The segment below is supposed to plot two columns of (x,y) data and do
it in an area 640x480. Apparently, I'm missing how to use v to get this
done. It dies at col.axis(v) with list object has no attribute 'axis'.
From looking at some MPL examples, it's not clear to me how one uses
axis here. I might have needed axes, but that doesn't work either.

...
trk_stats = (amin, amax, mean, std, per_tile25, per_tile50,
per_tile75)
fig = figure()
v = (0, 640, 0, 480)
print "shapes: ", xy[:,0].shape, xy[:,1].shape
col = ax1.plot(xy[:,0], xy[:,1])
col.axis(v)
show()
print "something for wtw plot"
print
return trk_stats

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options

--
My life in two words. "Interrupted Projects." -- WTW (quote originator)