[matplotlib-devel] 1 failing test from mpl v1.0-rev8624

2010-08-06 Thread Gökhan Sever
Hello,

Just reporting if all is good with the mpl test suite.

>>> import matplotlib
>>> matplotlib.test()
/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/axes.py:2377:
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))
==
ERROR: matplotlib.tests.test_axes.test_pcolormesh
--
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 183, in runTest
self.test(*self.arg)
  File
"/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
line 32, in failer
result = f(*args, **kwargs)
  File
"/home/gsever/Desktop/python-repo/matplotlib/lib/matplotlib/testing/decorators.py",
line 126, in decorated_compare_images
'(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close:
/home/gsever/Desktop/result_images/test_axes/pcolormesh.png vs.
/home/gsever/Desktop/result_images/test_axes/expected-pcolormesh.png (RMS
116.512)

--
Ran 147 tests in 111.461s

FAILED (KNOWNFAIL=45, errors=1)
False


Platform :
Linux-2.6.31.9-174.fc12.i686.PAE-i686-with-fedora-12-Constantine
Python   : ('CPython', 'tags/r262', '71600')
Matplotlib   : 1.0.0-rev8624


Interestingly, when I try to run the test suite in IPython v0.10 it stops
without executing the tests:

In[9]: matplotlib.test()
Usage: ipython [options]

ipython: error: no such option: -y
---
SystemExitTraceback (most recent call last)
...

-- 
Gökhan
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] Colormap that prints nicely in black and white

2010-08-06 Thread Damon McDougall
Hi all,

Don't know if anybody else has found a colormap that is aesthetically pleasing 
and prints well in black and white. I found one after a lot of Googling. 
Perhaps useful for plotting figures in journals that charge a lot for colour 
figures. I got the colormap from: 
http://ieeexplore.ieee.org/iel5/74/22101/01028735.pdf%3Farnumber%3D1028735

I decided to code it up (see attached text file for the cdict). If anybody 
finds it useful, maybe it could go into the default colormaps that ship with 
matplotlib.

cdict = {'red'   : ((0.000, 0.00, 0.00),
(0.125, 0.15, 0.15),
(0.250, 0.30, 0.30),
(0.375, 0.60, 0.60),
(0.500, 1.00, 1.00),
(0.625, 0.90, 0.90),
(0.750, 0.90, 0.90),
(0.875, 0.90, 0.90),
(1.000, 1.00, 1.00)),
 
 'green' : ((0.000, 0.00, 0.00),
(0.125, 0.15, 0.15),
(0.250, 0.15, 0.15),
(0.375, 0.20, 0.20),
(0.500, 0.25, 0.25),
(0.625, 0.50, 0.50),
(0.750, 0.75, 0.75),
(0.875, 0.90, 0.90),
(1.000, 1.00, 1.00)),
 
 'blue'  : ((0.000, 0.00, 0.00),
(0.125, 0.50, 0.50),
(0.250, 0.75, 0.75),
(0.375, 0.50, 0.50),
(0.500, 0.15, 0.15),
(0.625, 0.00, 0.00),
(0.750, 0.10, 0.10),
(0.875, 0.50, 0.50),
(1.000, 1.00, 1.00))
 }


Regards,
-- Damon

--
Damon McDougall
Mathematics Institute
University of Warwick
Coventry
CV4 7AL
d.mcdoug...@warwick.ac.uk



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] Colormap that prints nicely in black and white

2010-08-06 Thread Benjamin Root
On Fri, Aug 6, 2010 at 3:33 PM, Damon McDougall
wrote:

> Hi all,
>
> Don't know if anybody else has found a colormap that is aesthetically
> pleasing and prints well in black and white. I found one after a lot of
> Googling. Perhaps useful for plotting figures in journals that charge a lot
> for colour figures. I got the colormap from:
> http://ieeexplore.ieee.org/iel5/74/22101/01028735.pdf%3Farnumber%3D1028735
>
> I decided to code it up (see attached text file for the cdict). If anybody
> finds it useful, maybe it could go into the default colormaps that ship with
> matplotlib.
>
>
>
>
> Regards,
> -- Damon
>
> --
> Damon McDougall
> Mathematics Institute
> University of Warwick
> Coventry
> CV4 7AL
> d.mcdoug...@warwick.ac.uk
>
>
Actually, I have been looking at a somewhat related problem.  It might be a
useful feature in matplotlib.color to provide a function that can take a
colormap and produce a grayscale version of it.  In my limited amount of
research, I have found that one could convert the rgb values into hsv or hsl
and use the "value" or "lightness" respectively for the grayscale value.  I
forget which one was aesthetically better, though.

Ben Root
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel