|
From: Jakob J. L. <jak...@gm...> - 2006-04-17 13:46:30
|
Hello,
It may very well be that this is a trivial problem, due to my lack of
knowledge. I did, at least, go through all the mail lists and the
examples of pylab (VERY NICE, BTW: I am extremely happy to have found
it).
I am trying to plot a table or matrix of graphs. I want to do this
with a loop. So far, I have tried it with something like
## code starts here
rownrs =3D ... # defined nr of graphs in x direction
colnrs =3D ... # defined nr of graphs in y direction
x =3D .... # defined x-values here
plotnr =3D 0
=09fig =3D figure()
=09hold(False)
=09for counter in counter_list:
=09=09y =3D intensities_calc[counter]
=09=09plotnr =3D plotnr+1=09
=09=09ax =3D subplot(rownrs, colnrs, plotnr)
=09=09fig.add_subplot(ax)
=09=09plot(x,y)=09
=09=09if ax.is_last_row():
=09=09ax.set_xlabel('time')
=09show()
### code ends here
all i get is one graph, in the first position. no error messages.
please, what am i doing wrong ?
very grateful for an answer..
Jakob
--
Jakob J. Lopez (Jak...@gm...)
|