2011/7/10 Stéfan van der Walt
plot_directive.py (see http://projects.scipy.org/numpy/ticket/1489). As a fix, I changed conf.py to import plot_directive from matplotlib.sphinxext. I'm assuming that this isn't ideal since plot_directive must have been forked from matplotlib by numpy to fix-issues and/or add features, but it seems to work for me.
If the copy in ext is outdated, we should simply replace it with the latest version from matplotlib.
That sounds good. Should I copy the file from matplotlib or numpy? (I think original was copied from numpy.)
* Auto docs don't work properly (at least on my system) when other scikits
are on the python path. Basically, the call to __import__('scikits.image') in apigen.py returns the path to *a different scikit*. A work around is to use the import function shown here: http://stackoverflow.com/questions/211100/pythons-import-doesnt-work-as-expe... * Also, it *might* be a good idea to remove auto-generated API docs when running "make clean". I got a number of Sphinx warnings because of dead links to old classes/functions.
Glad you caught all of these! Would you please file a pull request with your changes?
I'll definitely file a pull request with the updated copy of plot_directive.py Cheers, -Tony
participants (1)
-
Tony Yu