[matplotlib-devel] A new KNOWNFAIL, pcolormesh.png ?

2011-01-17 Thread Sandro Tosi
Hi,
I was playing with test suite and I noticed that :

morph@zion:~/deb/build-area/matplotlib-1.0.1$
PYTHONPATH=build/lib.linux-x86_64-2.6 python -c "import matplotlib as
m ; m.test(verbosity=1)"
/usr/lib/pymodules/python2.6/nose/plugins/manager.py:391: UserWarning:
Module matplotlib was already imported from
/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/__init__.pyc,
but /usr/lib/pymodules/python2.6 is being added to sys.path
  import pkg_resources
..KK..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..KE.K..K..K..K..K..K/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/axes.py:2381:
UserWarning: Attempting to set identical left==right results
in singular transformations; automatically expanding.
left=730139.0, right=730139.0
  + 'left=%s, right=%s') % (left, right))
...K..KK..K..K.K..K..K..K..KK..K..KK..K..K..K..K
==
ERROR: matplotlib.tests.test_axes.test_pcolormesh
--
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/nose/case.py", line 183, in runTest
self.test(*self.arg)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
line 32, in failer
result = f(*args, **kwargs)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
line 126, in decorated_compare_images
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close:
/home/morph/deb/build-area/matplotlib-1.0.1/result_images/test_axes/pcolormesh.png
vs. 
/home/morph/deb/build-area/matplotlib-1.0.1/result_images/test_axes/expected-pcolormesh.png
(RMS 116.512)

--
Ran 150 tests in 107.607s

FAILED (KNOWNFAIL=46, errors=1)

Except for the UserWarning, there is an error in the suite: is someone
else able to replicate it? is it another KNOWNFAIL?

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] backporting typo fixes?

2011-01-17 Thread Paul Ivanov
Hi everyone,

I just committed a big typos fix to trunk (r8925), should changes
like this be backported to the maintenance branch?

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 


signature.asc
Description: Digital signature
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] A new KNOWNFAIL, pcolormesh.png ?

2011-01-17 Thread Benjamin Root
On Mon, Jan 17, 2011 at 1:28 PM, Sandro Tosi  wrote:

> Hi,
> I was playing with test suite and I noticed that :
>
> morph@zion:~/deb/build-area/matplotlib-1.0.1$
> PYTHONPATH=build/lib.linux-x86_64-2.6 python -c "import matplotlib as
> m ; m.test(verbosity=1)"
> /usr/lib/pymodules/python2.6/nose/plugins/manager.py:391: UserWarning:
> Module matplotlib was already imported from
>
> /home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/__init__.pyc,
> but /usr/lib/pymodules/python2.6 is being added to sys.path
>  import pkg_resources
>
> ..KK..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..K..KE.K..K..K..K..K..K/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/axes.py:2381:
> UserWarning: Attempting to set identical left==right results
> in singular transformations; automatically expanding.
> left=730139.0, right=730139.0
>  + 'left=%s, right=%s') % (left, right))
> ...K..KK..K..K.K..K..K..K..KK..K..KK..K..K..K..K
> ==
> ERROR: matplotlib.tests.test_axes.test_pcolormesh
> --
> Traceback (most recent call last):
>  File "/usr/lib/pymodules/python2.6/nose/case.py", line 183, in runTest
>self.test(*self.arg)
>  File
> "/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
> line 32, in failer
>result = f(*args, **kwargs)
>  File
> "/home/morph/deb/build-area/matplotlib-1.0.1/build/lib.linux-x86_64-2.6/matplotlib/testing/decorators.py",
> line 126, in decorated_compare_images
>'(RMS %(rms).3f)'%err)
> ImageComparisonFailure: images not close:
>
> /home/morph/deb/build-area/matplotlib-1.0.1/result_images/test_axes/pcolormesh.png
> vs.
> /home/morph/deb/build-area/matplotlib-1.0.1/result_images/test_axes/expected-pcolormesh.png
> (RMS 116.512)
>
> --
> Ran 150 tests in 107.607s
>
> FAILED (KNOWNFAIL=46, errors=1)
>
> Except for the UserWarning, there is an error in the suite: is someone
> else able to replicate it? is it another KNOWNFAIL?
>
> Cheers,
> --
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi
>
>
I have seen this before, and I think it was discussed once before.
Visually, there is very little difference, but supposedly there is some sort
of issue with different PIL versions.  What version of PIL do you have?

Ben Root
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] A new KNOWNFAIL, pcolormesh.png ?

2011-01-17 Thread Sandro Tosi
Hi Ben,
thanks for the fast reply!

On Mon, Jan 17, 2011 at 20:35, Benjamin Root  wrote:
> I have seen this before, and I think it was discussed once before.
> Visually, there is very little difference,

indeed, looking at the 2 images, I can't see any difference.

> but supposedly there is some sort
> of issue with different PIL versions.  What version of PIL do you have?

1.1.7

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] [Python-modules-team] Bug#608932: python-matplotlib-doc: "Exception occurred rendering plot"

2011-01-17 Thread Sandro Tosi
Hi,

On Tue, Jan 4, 2011 at 19:11, Jakub Wilk  wrote:
> Package: python-matplotlib-doc
> Version: 0.99.3-1
> Severity: minor
>
> There are several "Exception occurred rendering plot" warnings in the
> generated documentation:
>
> $ cd /usr/share/doc/python-matplotlib-doc/html/ && grep -r 'Exception
> occurred' .
> ./users/screenshots.html:[ href="../plot_directive/mpl_examples/pylab_examples/scatter_demo2.py">source
> code]Exception occurred rendering plot.
> ./users/screenshots.html:[ href="../plot_directive/mpl_examples/api/date_demo.py">source
> code]Exception occurred rendering plot.
> ./users/screenshots.html:[ href="../plot_directive/mpl_examples/pylab_examples/finance_work2.py">source
> code]Exception occurred rendering plot.
> ./users/screenshots.html:[ href="../plot_directive/pyplots/plotmap.py">source code]Exception
> occurred rendering plot.
> ./examples/units/date_support.html:[ href="../../plot_directive/mpl_examples/units/date_support.py">source
> code]Exception occurred rendering plot.
> ./examples/units/basic_units.html:[ href="../../plot_directive/mpl_examples/units/basic_units.py">source
> code]Exception occurred rendering plot.
> ./examples/units/artist_tests.html:[ href="../../plot_directive/mpl_examples/units/artist_tests.py">source
> code]Exception occurred rendering plot.
> ./examples/axes_grid/demo_image.html:[ href="../../plot_directive/mpl_examples/axes_grid/demo_image.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/data_helper.html:[ href="../../plot_directive/mpl_examples/pylab_examples/data_helper.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/date_demo2.html:[ href="../../plot_directive/mpl_examples/pylab_examples/date_demo2.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/geo_demo.html:[ href="../../plot_directive/mpl_examples/pylab_examples/geo_demo.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/centered_ticklabels.html:[ href="../../plot_directive/mpl_examples/pylab_examples/centered_ticklabels.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/finance_demo.html:[ href="../../plot_directive/mpl_examples/pylab_examples/finance_demo.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/date_demo1.html:[ href="../../plot_directive/mpl_examples/pylab_examples/date_demo1.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/finance_work2.html:[ href="../../plot_directive/mpl_examples/pylab_examples/finance_work2.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/loadrec.html:[ href="../../plot_directive/mpl_examples/pylab_examples/loadrec.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/scatter_demo2.html:[ href="../../plot_directive/mpl_examples/pylab_examples/scatter_demo2.py">source
> code]Exception occurred rendering plot.
> ./examples/pylab_examples/multipage_pdf.html:[ href="../../plot_directive/mpl_examples/pylab_examples/multipage_pdf.py">source
> code]Exception occurred rendering plot.
> ./examples/api/date_demo.html:[ href="../../plot_directive/mpl_examples/api/date_demo.py">source
> code]Exception occurred rendering plot.

The updated list is:

api/axes_api.html
api/pyplot_api.html
examples/api/hinton_demo.html
examples/api/radar_chart.html
examples/api/sankey_demo.html
examples/pylab_examples/anchored_artists.html
examples/pylab_examples/arrow_demo.html
examples/pylab_examples/axes_zoom_effect.html
examples/pylab_examples/data_helper.html
examples/pylab_examples/demo_bboximage.html
examples/pylab_examples/geo_demo.html
examples/pylab_examples/image_demo2.html
examples/pylab_examples/legend_auto.html
examples/pylab_examples/multipage_pdf.html
examples/units/artist_tests.html
examples/units/basic_units.html
users/annotations_guide.html
users/screenshots.html

But I have some problems debugging these issues, since when I run the
code by-hand, it works fine but in the html file it's not shown. How
can I debug that? in the log there's nothing about these problems (but
other error, I'll follow them up in another mail).

Thanks in advance,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Tracebacks during doc build

2011-01-17 Thread Sandro Tosi
Hi,
I noticed several tracebacks during doc building, so I'm adding them
here so we can get them fixed; let's start:

reading sources... [ 54%] examples/pylab_examples/geo_demo
/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.p
y:322: PlotWarning: Exception running plot
/home/morph/deb/build-area/matplotlib-1.0.1-test/doc/mpl_examples/pyla
b_examples/geo_demo.py
Traceback (most recent call last):
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.py",
line 319, in render_figures
run_code(plot_path, function_name, plot_code, context=context)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.py",
line 230, in run_code
"__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE))
  File "geo_demo.py", line 10, in 
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/pyplot.py",
line 658, in subplot
a = fig.add_subplot(*args, **kwargs)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/figure.py",
line 687, in add_subplot
a = subplot_class_factory(projection_class)(self, *args, **kwargs)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/axes.py",
line 8380, in __init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
  File "custom_projection_example.py", line 33, in __init__
TypeError: expected string or Unicode object, NoneType found

  warnings.warn(s, PlotWarning)

---

reading sources... [ 57%] examples/pylab_examples/image_demo2
/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.py:322:
PlotWarning: Exception running plot
/home/morph/deb/build-area/matplotlib-1.0.1-test/doc/mpl_examples/pylab_examples/image_demo2.py
Traceback (most recent call last):
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.py",
line 319, in render_figures
run_code(plot_path, function_name, plot_code, context=context)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/sphinxext/plot_directive.py",
line 230, in run_code
"__plot__", fd, fname, ('py', 'r', imp.PY_SOURCE))
  File "image_demo2.py", line 9, in 
IOError: [Errno 2] No such file or directory:
'/home/morph/deb/build-area/matplotlib-1.0.1-test/sampledata/ct.raw'

  warnings.warn(s, PlotWarning)

(see other email about missing ct.raw in sampledata tarball)

---

reading sources... [ 61%] examples/pylab_examples/loadrec
/usr/lib/pymodules/python2.6/xlwt/Cell.py:17: DeprecationWarning:
struct integer overflow masking is deprecated
  return pack('<5HL', 0x00FD, 10, self.rowx, self.colx, self.xf_idx,
self.sst_idx)
/usr/lib/pymodules/python2.6/xlwt/Cell.py:225: DeprecationWarning:
struct integer overflow masking is deprecated
  pieces.append(pack('<4H', 0x00BD, 6 * nc + 6, rowx, icolx))
/usr/lib/pymodules/python2.6/xlwt/Cell.py:227: DeprecationWarning:
struct integer overflow masking is deprecated
  pieces.append(pack('
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/collections.py",
line 836, in __init__
self.set_segments(segments)
  File 
"/home/morph/deb/build-area/matplotlib-1.0.1-test/build/lib.linux-x86_64-2.6/matplotlib/collections.py",
line 845, in set_segments
seg = np.asarray(seg, np.float_)
  File "/usr/lib/pymodules/python2.6/numpy/core/numeric.py", line 261,
in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

  warnings.warn(s, PlotWarning)

---

Severals:

* (WARNING/2) Block quote ends without a blank line; unexpected unindent.
* (ERROR/3) Unexpected indentation.
* (WARNING/2) malformed hyperlink target.
* WARNING: document isn't included in any toctree
* WARNING: unusable reference target found

Cheers,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel