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

2010-08-09 Thread Benjamin Root
On Mon, Aug 9, 2010 at 3:40 PM, Friedrich Romstedt < friedrichromst...@gmail.com> wrote: > 2010/8/6 Benjamin Root : > > 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 produc

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

2010-08-09 Thread Friedrich Romstedt
2010/8/6 Benjamin Root : > 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 conver

Re: [matplotlib-devel] Exploring

2010-08-09 Thread Tony S Yu
On Jul 30, 2010, at 8:04 PM, Jae-Joon Lee wrote: > I don't think this is just an issue of "bbox_inches" option. For > example, if you create an axes of rect=[0,0,1,1] and save the figure > (w/o bbox_inches option), you will see a similar behavior. > Also, I believe that the result depends on the

Re: [matplotlib-devel] Handle 'none' as edgecolor for bar()

2010-08-09 Thread Ben North
>> I tried to use "edgecolor = 'none'" in a call to bar(), hoping to get no >> border to the bars, but instead got no bars at all. > > Just to note, the documentation does specify a difference between None and > 'none'. None means to use the rcdefaults and 'none' means no color at all. > Is bar()

Re: [matplotlib-devel] Handle 'none' as edgecolor for bar()

2010-08-09 Thread Benjamin Root
On Mon, Aug 9, 2010 at 3:28 AM, Ben North wrote: > Hi, > > I tried to use "edgecolor = 'none'" in a call to bar(), hoping to get no > border to the bars, but instead got no bars at all. The patch below > (against 1.0.0) seems to fix this; it adds a check for 'none' to the > existing check for No

[matplotlib-devel] Handle 'none' as edgecolor for bar()

2010-08-09 Thread Ben North
Hi, I tried to use "edgecolor = 'none'" in a call to bar(), hoping to get no border to the bars, but instead got no bars at all. The patch below (against 1.0.0) seems to fix this; it adds a check for 'none' to the existing check for None as a special case of the edgecolor argument. Thanks, Ben.

[matplotlib-devel] Fixing 'FIXME' in bar()

2010-08-09 Thread Ben North
Hi, While looking at axes.py for the color/edgecolor patch just sent, I noticed the FIXME suggesting ValueError instead of assert. Is the below the kind of thing? Ben. --- ORIG-axes.py2010-07-06 15:43:35.0 +0100 +++ NEW-axes.py 2010-08-09 09:43:30.000257000 +0100 @@ -4589,15

[matplotlib-devel] Handle 'none' as color and edgecolor for bar()

2010-08-09 Thread Ben North
Hi, Update to my recent email: perhaps it would make sense to handle the 'color' argument in the same way, allowing hollow bars. Combined patch below. Ben. --- ORIG-axes.py2010-07-06 15:43:35.0 +0100 +++ NEW-axes.py 2010-08-09 09:39:44.000256000 +0100 @@ -4575,15 +4575,17 @@