Debugging: Many Multiple Plots

This is my first use of matplotlib so I'd appreciate suggestions for
getting it working properly.

   I want to produce many separate plots, each having 1-7 curves plotted on the
same set of axes. Ultimately, I would like the output to be .pdf files so
they can be incorporated into a ReportLab document, but for now I'll settle
for .png files until I understand how to code correctly. The data are
hierarchical to four levels: the lowest levels are the individual curves to
be plotted on common axes for each of the third level values. The extracted
code modules (termset-test-data.py and test-functions.py) are appended. When
run, I see one plot with only a single curve. When I close that window, the
script continues to run producing this error message:

Traceback (most recent call last):
   File "termset-test-data.py", line 392, in ?
     testCode()
   File "termset-test-data.py", line 389, in testCode
     pylab.hold()
   File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 334, in hold
     rc('axes', hold=b)
   File "/usr/lib/python2.4/site-packages/matplotlib/pyplot.py", line 74, in rc
     matplotlib.rc(*args, **kwargs)
   File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line 712, in rc
     rcParams[key] = v
   File "/usr/lib/python2.4/site-packages/matplotlib/__init__.py", line 552, in __setitem__
     cval = self.validate[key](val)
   File "/usr/lib/python2.4/site-packages/matplotlib/rcsetup.py", line 43, in validate_bool
     raise ValueError('Could not convert "%s" to boolean' % b)
ValueError: Could not convert "None" to boolean

   Suggestions appreciated.

Rich

termset-test-data.py (39.5 KB)

testFunctions.py (4.75 KB)

···

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Replacing the line above with pylab.hold(False) seems to put me in a
non-stop loop. I'll run the test code in winpdb, but still want suggestions
on how to get the output I need.

Rich

···

On Tue, 18 Mar 2008, Rich Shepard wrote:

File "termset-test-data.py", line 389, in testCode
   pylab.hold()

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863