I've been relying very heavily on the examples lately to test my
refactored branch of matplotlib. In doing so, I've discovered a few
that are currently broken in matplotlib's trunk. I'm reporting these
just to bring them to the attention of the list, not because they are
priority bugs for me. Some of these may simply be old and should be
removed. Let me know if you need any more information for them.
I've also run backend_driver.py through a code coverage tool
(coverage.py) and identified a few large parts of the code that weren't
covered. I added a dozen or so existing examples to backend_driver, and
now though there are lots of little places that never get run (mainly
error cases and such), the code coverage of backend_driver is quite
good. The only high-level method in axes.py that isn't being tested is
cohere(). Does anyone have a test for it that could be added?
Errors follow.
Cheers,
Mike
> python agg_resize.py
Traceback (most recent call last):
File "agg_resize.py", line 7, in <module>
interp = agg.span_interpolator_linear(imMatrix);
AttributeError: 'module' object has no attribute 'span_interpolator_linear'
> python embedding_in_wx2.py
[The y-axis labels are being cut off at the bottom of the figure.]
> python image_slices_viewer.py
[It says the "use the scroll wheen to navigate images" [sic], but the
scroll wheel doesn't appear to do anything in TkAgg on Linux.]
> python keypress_demo.py
[Pressing "g" to toggle the grid causes the grid to flash momentarily
and then disappear again.]
> python bar_unit_demo.py
Traceback (most recent call last):
File "bar_unit_demo.py", line 14, in <module>
p1 = ax.bar(ind, menMeans, width, color='r', bottom=0*cm, yerr=menStd)
File
"/home/mdroe/usr/lib/python2.5/site-packages/matplotlib/axes.py", line
3307, in bar
fmt=None, ecolor=ecolor, capsize=capsize)
File
"/home/mdroe/usr/lib/python2.5/site-packages/matplotlib/axes.py", line
3727, in errorbar
lower = y-yerr
TypeError: unsupported operand type(s) for -: 'int' and 'TaggedValue'
> python ellipse_with_units.py
Traceback (most recent call last):
File "ellipse_with_units.py", line 36, in <module>
ax.add_patch(e1)
File
"/home/mdroe/usr/lib/python2.5/site-packages/matplotlib/axes.py", line
1143, in add_patch
self._update_patch_limits(p)
File
"/home/mdroe/usr/lib/python2.5/site-packages/matplotlib/axes.py", line
1150, in _update_patch_limits
p.get_transform(), p.get_verts())
File
"/home/mdroe/usr/lib/python2.5/site-packages/matplotlib/patches.py",
line 814, in get_verts
x = width/2. * npy.cos(theta)
TypeError: unsupported operand type(s) for /: 'TaggedValue' and 'float'
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel