Say I have a bunch of ax1,ax2,ax3... and I want to run them through a plotting function:
def plotxy(ax,x,y): x = np.array(x) y = np.array(y) ax.plot(
you can also use map, x and y being name space variables and axx some iterable over your axes objects:
x
y
axx
x = ... y = ... def plotxy(ax): ax.plot(x,y) map(plotxy,axx)