small bugs in matplotlib-svn/examples

Hello list,

It may not be very important, but I collected some small bugs while exploring
the examples and for some of them I got little patches.

- for me their occur two "typos" in matplotlib/text.py (see the attached
text.patch, please)

- some examples don't work for me (see attached some_examples.patch, please)
  e.g. changes in legend_scatter.py due to a DeprecationWarning
  (matplotlib/axes.py:4288) although that doesn't fix the problem of the
legend_scatter.py (see attached output_of_legend_scatter.out, please)
I recognized, that the 'handle._edgecolors' is an empty list at this point,
but unfortunately I couldn't figure out why.

- the function mlab.rec2excel does not exist anymore
-> in matplotlib/mlab.py:
    line 73: rec2excel(r, 'test.xls', formatd=formatd)
    needs to be removed
-> examples/loadrec.py needs to be changed accordingly (I don't
know what is properly in that case )

best regards
Matthias

text.patch (739 Bytes)

some_examples.patch (2.35 KB)

output_of_legend_scatter.out (753 Bytes)

Thanks. These have been applied on the SVN trunk r5138. The problem with legend_scatter.py was a type error created when edgecolors changed to a Numpy array (which is optionally zero-length).

Matthias Michler wrote:

- the function mlab.rec2excel does not exist anymore
-> in matplotlib/mlab.py: line 73: rec2excel(r, 'test.xls', formatd=formatd) needs to be removed
-> examples/loadrec.py needs to be changed accordingly (I don't know what is properly in that case )
  

I haven't done anything with the record array stuff, so I'll leave this to another developer to look at.

Cheers,
Mike

···

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Fixed in r5139. This was a consequence of moving the excel and gtk
imports out of mlab to improve load time. The location is now
mpl_toolkits.exceltools.rec2xls

JDH

···

On Wed, May 14, 2008 at 11:41 AM, Michael Droettboom <mdroe@...86...> wrote:

I haven't done anything with the record array stuff, so I'll leave this
to another developer to look at.