The axes_grid examples, broken by the recent spine patch, are now
fixed in the svn.

Also, when I commit axes_grid toolkit into the trunk, I deleted a few
example under examples/pylab_examples. For example, axes_divider.py in
the error message below has been deleted.

IOError: [Errno 2] No such file or directory: 'axes_divider.py'

The doc build script somehow still try to run those script. I'll try
to look into what's going on later. If others know any trivial
solution, please go ahead and fix it.

▶◀

-JJ



On Thu, May 28, 2009 at 10:51 PM, John Hunter <jdh2...@gmail.com> wrote:
> I was just updating the site docs and a few examples are failing to
> build.  Some of these are easy pickens, so if you have a quick fix,
> please put it in, and reply here when you've fixed one to avoid
> duplication of effort.
>
> JDH
>
> ================================
>  File "geo_demo.py", line 9, in <module>
>  File "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/pyplot.py",
> line 645, in subplot
>    a = fig.add_subplot(*args, **kwargs)
>  File "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/figure.py",
> line 690, in add_subplot
>    a = subplot_class_factory(projection_class)(self, *args, **kwargs)
>  File "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/axes.py",
> line 7844, in __init__
>    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
>  File "custom_projection_example.py", line 35, in __init__
>  File "custom_projection_example.py", line 50, in cla
> AttributeError: 'NoneType' object has no attribute 'cla'
>
> ============================================
>
>  File "finance_work2.py", line 36, in <module>
>  File "/usr/lib/python2.5/optparse.py", line 1387, in parse_args
>    self.error(str(err))
>  File "/usr/lib/python2.5/optparse.py", line 1569, in error
>    self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
>  File "/usr/lib/python2.5/optparse.py", line 1559, in exit
>    sys.exit(status)
> SystemExit: 2
>
>
> ===============================================
>
> directive.py", line 206, in makefig
>    runfile(fullpath)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 141, in runfile
>    fd = open(fname)
> IOError: [Errno 2] No such file or directory: 'anchored_text.py'
>
>  warnings.warn(s)
> examples/pylab_examples/annotation_demo
> *********examples/pylab_examples/annotation_demo2
> ......examples/pylab_examples/anscombe
> ***examples/pylab_examples/arctest
> ***examples/pylab_examples/arrow_demo
> ...examples/pylab_examples/aspect_loglog
> ***examples/pylab_examples/axes_demo
> ***examples/pylab_examples/axes_divider
> /home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py:209:
> UserWarning: Exception running plot
> /home/jdhunter/mpl/doc/mpl_examples/pylab_examples/axes_divider.py
> Traceback (most recent call last):
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 206, in makefig
>    runfile(fullpath)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 141, in runfile
>    fd = open(fname)
> IOError: [Errno 2] No such file or directory: 'axes_divider.py'
>
>  warnings.warn(s)
> examples/pylab_examples/axes_grid
> /home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py:209:
> UserWarning: Exception running plot
> /home/jdhunter/mpl/doc/mpl_examples/pylab_examples/axes_grid.py
> Traceback (most recent call last):
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 206, in makefig
>    runfile(fullpath)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/sphinxext/plot_directive.py",
> line 141, in runfile
>    fd = open(fname)
> IOError: [Errno 2] No such file or directory: 'axes_grid.py'
>
>  warnings.warn(s)
>
> =================================================
>
>
>  File "parasite_simple.py", line 6, in <module>
>  File "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/axes.py",
> line 7844, in __init__
>    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/mpl_toolkits/axes_grid/parasite_axes.py",
> line 189, in __init__
>    super(HostAxes, self).__init__(*kl, **kwargs)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/mpl_toolkits/axes_grid/axislines.py",
> line 1244, in __init__
>    self.toggle_axisline(True)
>  File 
> "/home/jdhunter/dev/lib/python2.5/site-packages/mpl_toolkits/axes_grid/axislines.py",
> line 1252, in toggle_axisline
>    self.frame.set_visible(False)
>  File "/home/jdhunter/dev/lib/python2.5/site-packages/matplotlib/axes.py",
> line 988, in get_frame
>    raise AttributeError('Axes.frame was removed in favor of Axes.spines')
> AttributeError: Axes.frame was removed in favor of Axes.spines
>
>
> ...and lots more like these for axes_grid
>
> ===========================================================
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to