Chapter 6 tutorial question

From: brian voigt <brian.voigt_at_uvm.edu>
Date: Thu, 14 Jun 2007 15:55:23 -0400

Hello urbansimmers - I'm working my way through the tutorial (Chapter 6
in the User's Guide) and am having trouble with plotting the histogram.
After following the steps to define and query household, when I issue
the households.plot_histogram call, I get the following error message

>>> households.plot_histogram("income", bins = 10)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"C:\Python24\Lib\site-packages\opus_core\datasets\abstract_dataset.py",
line 1195, in plot_histogram
    plot_histogram(values, main=main, xlabel=name, bins=bins)
  File "C:\Python24\Lib\site-packages\opus_core\plot_functions.py", line
31, in plot_histogram
    create_histogram(values, main, xlabel, bins)
  File "C:\Python24\Lib\site-packages\opus_core\plot_functions.py", line
27, in create_histogram
    create_barchart(hist, bins, mini, maxi, main)
  File "C:\Python24\Lib\site-packages\opus_core\plot_functions.py", line
44, in create_barchart
    bar(arange(mini, maxi, stride = (maxi-mini)/bins), values,
width=width_par, color='g')
TypeError: 'stride' is an invalid keyword argument for this function

I should mention that I'm using the Milestone Release Candidate when
this error occurs. If I step back to an older version, I'm able to
successfully plot the histogram. Any thoughts?

thanks,
brian

-------------------------------------------
Brian Voigt
Spatial Analysis Lab
220 Aiken Center
University of Vermont
Burlington, VT 05405
e-mail brian.voigt_at_uvm.edu
Received on Thu Jun 14 2007 - 12:55:26 PDT

This archive was generated by hypermail 2.2.0 : Thu Jun 14 2007 - 12:55:29 PDT