Re: [matplotlib-devel] logo example plots are wrong

2008-11-10 Thread Michael Droettboom
Just a note -- my recent changes to the font cache were drastic enough that I changed the file name (a cheap form of versioning...). It is now fontList.cache -- I was hoping that would avoid this, but apparently not... :( Mike John Hunter wrote: On Sat, Nov 8, 2008 at 5:53 PM, Jae-Joon Lee

Re: [matplotlib-devel] SF.net SVN: matplotlib:[6385] trunk/matplotlib/lib/matplotlib/cbook.py

2008-11-10 Thread Eric Firing
[EMAIL PROTECTED] wrote: Revision: 6385 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6385view=rev Author: ryanmay Date: 2008-11-10 18:59:18 + (Mon, 10 Nov 2008) Log Message: --- Make iterable() and is_string_like() return True/False instead of 1/0.

Re: [matplotlib-devel] SF.net SVN: matplotlib:[6385] trunk/matplotlib/lib/matplotlib/cbook.py

2008-11-10 Thread Ryan May
Eric Firing wrote: [EMAIL PROTECTED] wrote: Revision: 6385 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6385view=rev Author: ryanmay Date: 2008-11-10 18:59:18 + (Mon, 10 Nov 2008) Log Message: --- Make iterable() and is_string_like() return True/False

Re: [matplotlib-devel] Help with scatter

2008-11-10 Thread Ryan May
Andrew Stock wrote: My interpretation of this is that either of the three values attempted in the code example should work. However, all of these fail. from pylab import * x = [1,2,3] y = [2,4,6] c = ['#ff', '#00ff00', '#ff'] c = ['b','r', 'g'] c = [(1,0,0), (0,1,0), (0,0,1)]

Re: [matplotlib-devel] SF.net SVN: matplotlib:[6385] trunk/matplotlib/lib/matplotlib/cbook.py

2008-11-10 Thread Ryan May
Eric Firing wrote: The fix is: def is_string_like(obj): Return True if *obj* looks like a string Such objects should include Python strings, unicode strings, and numpy string array scalars. #if hasattr(obj, 'shape'): return 0 # I think the above is a

Re: [matplotlib-devel] Help with scatter

2008-11-10 Thread Ryan May
Ryan May wrote: Well, I can get the last one to work with SVN HEAD. The others don't work for me either, though I agree they probably should. It looks like any 1D sequence will trigger colormapping instead of strings being mapped to rgba arrays. I'll keep digging to see what changed.

Re: [matplotlib-devel] SF.net SVN: matplotlib:[6385] trunk/matplotlib/lib/matplotlib/cbook.py

2008-11-10 Thread John Hunter
On Mon, Nov 10, 2008 at 1:59 PM, Ryan May [EMAIL PROTECTED] wrote: I am not even sure if the above is the fix we want, but having numpy string array elements fail is_string_like seems like a fundamentally bad thing. we definitely want numpy strings, eg in a record array, to return True here.

Re: [matplotlib-devel] weights in hist()

2008-11-10 Thread David Huard
Note that the weight argument was added to histogram in Numpy 1.1. David 2008/10/29 Olle EngdegÄrd [EMAIL PROTECTED] Hi, I attach a trivial patch to pass a weight argument through hist() to histogram(). Cheers, Olle

Re: [matplotlib-devel] Help with scatter

2008-11-10 Thread Eric Firing
Ryan May wrote: Ryan May wrote: Well, I can get the last one to work with SVN HEAD. The others don't work for me either, though I agree they probably should. It looks like any 1D sequence will trigger colormapping instead of strings being mapped to rgba arrays. I'll keep digging to see what

[matplotlib-devel] legend markerscale not working

2008-11-10 Thread Orest Kozyar
On Ubuntu 8.10 (Intrepid Ibex) I'm using matplotlib 0.98.3 and would like to use the markerscale to make my legend points smaller (e.g. 0.6). However, it does not appear to be working. The following code: plot(arange(0, 100, .1), cos(arange(0, 100, .1)), 'ro', markersize=20, lable='test')

Re: [matplotlib-devel] Help with scatter

2008-11-10 Thread Ryan May
On Mon, Nov 10, 2008 at 5:54 PM, Eric Firing [EMAIL PROTECTED] wrote: Ryan May wrote: Ok, here's a patch that fixes the problem for me, as well as a test script that tests a bunch of the color options along with having more, the same, and less than the number of points passed in. This is

Re: [matplotlib-devel] Help with scatter

2008-11-10 Thread Eric Firing
Ryan May wrote: On Mon, Nov 10, 2008 at 5:54 PM, Eric Firing [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ryan May wrote: Ok, here's a patch that fixes the problem for me, as well as a test script that tests a bunch of the color options along with having