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] > > 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 havin

[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') legend

[matplotlib-devel] no markers when using figlegend

2008-11-10 Thread Rick Martin
Version: matplotlib 0.98.3 I get no markers inside of the figure legend (using figlegend). Using "legend" shows the markers. Try the following: from pylab import * lines = plot([1, 2, 3, 4], [2, 4, 7, 8], 'ro') legend(lines, ["foo"]) figlegend(lines, ["foo"], "upper right") show() If I use 'r

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. >>

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 c

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] 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 Tr

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] 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 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

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), (

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

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

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=6385&view=rev >> Author: ryanmay >> Date: 2008-11-10 18:59:18 + (Mon, 10 Nov 2008) >> >> Log Message: >> --- >> Make iterable() and is_string_like() r

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=6385&view=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

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] 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), (

[matplotlib-devel] Help with scatter

2008-11-10 Thread Andrew Stock
Hi, I'm trying to specify the colours for markers in a call to scatter. I've read this information in the documentation: c: a color. c can be a single color format string, or a sequence of color specifications of length N, or a sequence of N numbers to be mapped to colors using the cmap and n