[Numpy-discussion] Doctest items

Alan McIntyre alan.mcintyre@gmail....
Tue Jul 1 14:44:52 CDT 2008


On Tue, Jul 1, 2008 at 3:39 PM, Charles R Harris
<charlesr.harris@gmail.com> wrote:
>> We could always just make the plotting section one of those "it's just
>> an example not a doctest" things and remove the ">>>" (since it
>> doesn't appear to provide any useful test coverage or anything).
>
> Would it serve to overload plot with a function that does zippo?

Probably not in this case; there's an explicit matplotlib import, and
then a bunch of method calls on a matplotlib object:

>>> from matplotlib import pyplot as plt
>>> window = np.bartlett(51)
>>> plt.plot(window)
>>> plt.title("Bartlett window")

and so on.


More information about the Numpy-discussion mailing list