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

2013-05-22 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 wrote: > Hi, > > I have following code: > > import numpy as np > import pylab as pl > > Matrix(10,10) = > np.array([[ 4.

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

2013-05-22 Thread Bakhtiyor Zokhidov
Hi, I have following code: import numpy as np import pylab as pl Matrix(10,10) =  np.array([[ 4.5, 4.5, 4.5, 3.4, 2.5, 3.9, 3.4, 3.4, 2.2, 3.9], [ 3.9, 4.5, 5.2, 4.5, 3.4, 3.4, 2.2, 2.9, 3.4, 3.4], [ 3.9, 3.9, 2.5, 2.2, 1.9, 1.2, 1.2, 1.4, 2.5, 2.9], [ 3.4, 3.9, 2.9, 2.2, 1.2, 1.4, 1.7, 1.4, 1.

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

2013-05-22 Thread oyster
the following code runs ok with py2.4 and matplotlib.0.98.3 however no legend appears with py2.7.3 and matplotlib-1.2.1/1.3. and I get [quote] e:\prg\py\python-2.7.3\lib\site-packages\_matplotlib\matplotlib\legend.py:629: U serWarning: Legend does not support [, , , , ] Use proxy artist instead. h

[Matplotlib-users] constrained rectangular zoom does not always work with Qt4 backend

2013-05-22 Thread Gregorio Bastardo
Hi, I have problems with constrained rectangular zoom to x-y axis with PyQt4 / PySide backend. When I use the "Zoom-to-rectangle" button of the navigation toolbar while holding the x or y key, sometimes nothing happens when the mouse is released. Constrained panning and pan-zooming ("Pan/Zoom" but

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

2013-05-22 Thread Martin Mokrejs
ChaoYue wrote: > Hi Martin, > > I don't know tight_layout quite well. Probably you could also split the > handlers of the barplot into > and 2 or 3 or 4 parts depending on the number, and then show them in sperate > axes? > > then you create n+1 subplots for the whole figure? No, the reason wh

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

2013-05-22 Thread ChaoYue
Hi Martin, I don't know tight_layout quite well. Probably you could also split the handlers of the barplot into and 2 or 3 or 4 parts depending on the number, and then show them in sperate axes? then you create n+1 subplots for the whole figure? probably this is quite stupid. cheers, Chao On

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

2013-05-22 Thread Martin Mokrejs
Hi Chao, ChaoYue wrote: > Dear Martin, > > I worked out a similar example for your reference as I don't catch your > example very well. I think you got the idea quite well. > > fig = plt.figure() > > ax1 = fig.add_subplot(211)