Running this script gives the results below
#! /usr/bin/env python
from matplotlib.backends.backend_agg import RendererAgg
from matplotlib.transforms import Value
dpi = Value(100.0)
o = RendererAgg(100,200, dpi)
gc = o.new_gc()
gc.set_foreground('k')
face = (1,1,1)
gc.set_linewidth(1)
o.draw_rectangle(gc, face, 0,0, 100,200)
o.draw_lines(gc, (1,100,1), (1,100,200))
o._renderer.write_png("test.png")
#*** Results from running the above ****************
# J:\>python test4.py
# Traceback (most recent call last):
# File "test4.py", line 16, in ?
# o.draw_lines(gc, x, y)
# IndexError: Unexpected SeqBase<T> length.
···
#
# J:\>
#****************************************************
Running in on linux-gentoo 2004 runs just fine. Gives the expected output
file.
My windows setup is win2k, python2.4
I loaded numeric and numarray. Gives the same results in either case.
I have Borland5.5 installed have build an extension with it. Other than that
have several other nonstock modules installed.
Running it on win98 with python 2.4 gives a different error, but much the same
effect.
Thanks in advance
Jim Hurlburt
Yakima, WA