MacOSX backend throws exception when plotting a quadmesh

Hi, All,

When trying to call plt.show() to display a generate QuadMesh using the MacOSX backend, an error complaining about “TypeError: only length-1 arrays can be converted to Python scalars” is generated. The following gist contains two files: 1) a self contained example that will generate the error and 2) the Traceback generated. For completeness, the full hash of the commit I’m using (pulled early today) is found in the first line of the second file.

https://gist.github.com/3087990

I should add that switching to using plt.contourf() instead of pcolormesh does not error. This error does not occur when using a different backend.

I submitted an issue to the issue tracker, which can be found here: https://github.com/matplotlib/matplotlib/issues/1006

Patrick

···

Patrick Marsh

Ph.D. Candidate / Liaison to the HWT

School of Meteorology / University of Oklahoma

Cooperative Institute for Mesoscale Meteorological Studies

National Severe Storms Laboratory

http://www.patricktmarsh.com

Hi, All,

When trying to call plt.show() to display a generate QuadMesh using the
MacOSX backend, an error complaining about "TypeError: only length-1
arrays can be converted to Python scalars" is generated. The following
gist contains two files: 1) a self contained example that will generate
the error and 2) the Traceback generated. For completeness, the full
hash of the commit I'm using (pulled early today) is found in the first
line of the second file.

https://gist.github.com/3087990

I should add that switching to using plt.contourf() instead of
pcolormesh does not error. This error does not occur when using a
different backend.

I submitted an issue to the issue tracker, which can be found here:
https://github.com/matplotlib/matplotlib/issues/1006

Thanks, but I closed it because it is a duplicate of #996.

Eric

···

On 2012/07/10 6:44 PM, Patrick Marsh wrote:

Patrick

---
Patrick Marsh
Ph.D. Candidate / Liaison to the HWT
School of Meteorology / University of Oklahoma
Cooperative Institute for Mesoscale Meteorological Studies
National Severe Storms Laboratory
http://www.patricktmarsh.com