Re: [Matplotlib-users] contourf() for proper plotting purpose

2013-05-23 Thread Nicolas Rougier
You can use the 'origin' keyword: pl.controuf(Matrix, origin='lower') or pl.controuf(Matrix, origin='upper') Nicolas On May 23, 2013, at 7:27 AM, Bakhtiyor Zokhidov bakhtiyor_zokhi...@mail.ru wrote: Hi, I have following code: import numpy as np import pylab as pl Matrix(10,10)

[Matplotlib-users] scatter_hist.py: broken Example on MPL website

2013-05-23 Thread Martin Mokrejs
Hi, I just hit a broken example at http://matplotlib.org/examples/pylab_examples/scatter_hist.html?highlight=scatter $ python scatter_hist.py Traceback (most recent call last): File scatter_hist.py, line 44, in module axHisty.hist(y, bins=bins, orientation='horizontal') File

Re: [Matplotlib-users] Making space for a long legend outside of a barchart

2013-05-23 Thread Martin Mokrejs
Hi Chao, I spent some time to figure out why I cannot replace ax1.hist() with ax1.scatter(). It seems hist() returns list of 'Rectangle' (sadly if there is just one, it does return just the 'Rectangle' (not wrapped in a list) ... somewhere a trick a = [a, ] is likely needed. Anyway, my

Re: [Matplotlib-users] Making space for a long legend outside of a barchart

2013-05-23 Thread ChaoYue
Hi Martin, I am not sure that I understand your question very well. For a single scatter() plot, I guess I agree with you, you need to put it in [] because legend() function must receive iterable as far as I understand. I don't think scatter() allows you to pass a series of group of (x,y) data

Re: [Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-23 Thread Paul Hobson
Sorry I have to be so brief, but just like the error says, you fed the legend function the wedges returned by the pie command. But legend can't handle wedges. As the proxy artist tutorial hints, you need to feed it rectangles created manually (i.e., outside of any plotting commands). Hope that

Re: [Matplotlib-users] why legend does not show in matplotlib-1.2.1 py2.7

2013-05-23 Thread Jae-Joon Lee
I do not have any access to mpl 0.98 so I cannot tell for sure. My guess is that you have been using a feature that has not been intended, that has fixed at some point. The first argument to legend should be a list of artists. And pie2010 is a tuple of a list of patches and a list of texts, i.e.,