[Matplotlib-users] [Newbie] question concerning color mapping

2009-11-26 Thread David
Dear list, I recently came across the following code: In [7]: size = 50*np.random.randn(100) In [8]: colours = np.random.rand(100) In [9]: scatter(x, y, s=size, c=colours); In [10]: show() which works beautifully. My question though is this: why? I came to understand, with Google's help, that

Re: [Matplotlib-users] markerfacecolor in legend

2009-11-26 Thread Jae-Joon Lee
One option would be to use a proxy artist, an artist with properties you want. http://matplotlib.sourceforge.net/users/legend_guide.html#using-proxy-artist Regards, -JJ On Fri, Nov 20, 2009 at 7:01 PM, Zunbeltz Izaola zunbeltz.iza...@helmholtz-berlin.de wrote: Hi, I would like to have a

[Matplotlib-users] Question about subplots

2009-11-26 Thread chombee
I'm trying to make a figure with six subplots, here's what I've managed so far: http://dl.dropbox.com/u/136038/bar-00-protagonist.png That's actually done with two subplots (the top row and the bottom row) and what looks almost like 3 separate pairs of axes in each row is actually just one pair

Re: [Matplotlib-users] Line chart - want to show value of last data point

2009-11-26 Thread thumperj
John Hunter-4 wrote: On Tue, Nov 24, 2009 at 5:38 PM, thumperj mrthumperwab...@gmail.com wrote: I'm certain this is in an example somewhere but I can't seem to find it.  If someone can just point me to the example I'll take it from there.  Thank you! I have a line chart.  I just want

Re: [Matplotlib-users] Question about subplots

2009-11-26 Thread Pauli Virtanen
Thu, 26 Nov 2009 15:13:57 +, chombee wrote: I'm trying to make a figure with six subplots, here's what I've managed so far: http://dl.dropbox.com/u/136038/bar-00-protagonist.png That's actually done with two subplots (the top row and the bottom row) and what looks almost like 3

Re: [Matplotlib-users] Question about subplots

2009-11-26 Thread chombee
You could perhaps use 6 subplots, and place the titles manually. Something like suptitle(r'Top title', y=0.95) suptitle(r'Bottom title', y=0.05) Thanks, that worked very well. I got the plot that I wanted and with much tidier source code:

[Matplotlib-users] Refer to matplotlib sphinx plots

2009-11-26 Thread Jose Gomez-Dans
Hi, I'm not sure this is entirely on-topic as it relates to the matplotlib sphinx extension. I hope it's still acceptable! I am writing some documentation using sphinx, and I would like to refer plots that are rendered from an external python script. I can do the plot and it gets imported fine