Re: [Matplotlib-users] Prevent matplotlib (imshow) from interpolating at all

2012-07-26 Thread Rutger Kassies
Great tip, alot simpler than i expected. Although you still need to specify the correct dimensions of the axes, otherwise it wil be interpolated after all. If in my example i increase the figsize by a factor of 2, the image stretches along with it. Thanks! Rutger On 25 July 2012 19:11,

Re: [Matplotlib-users] axvspan with dates on x-axis

2012-07-26 Thread Phil Elson
Luciano got in touch offline and my suggestions worked for a certain version of Python. Luciano, were you trying it in python3? If not, what version of Python was it that wasn't working for you? Thanks, On 24 July 2012 18:26, Luciano Fleischfresser l_...@yahoo.com wrote: Still not working.

Re: [Matplotlib-users] axvspan with dates on x-axis

2012-07-26 Thread Luciano Fleischfresser
It is Python 2.5.2 (r252.60911, Jan 24 2010, 14:53:14) [GCC 4.3.2] on linux2. I believe the Matplotlib version there is outdated or the locale is an issue. Thanks for the help! From: Phil Elson pelson@gmail.com To: Luciano Fleischfresser l...@utfpr.edu.br

[Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Andreas Hilboll
Hi, I would like to create a figure which only contains a legend, and no axes at all. I would like to manually assign the colors. I found this here: http://stackoverflow.com/a/3302666 but from there on, I'd like to remove the axes, and put the legend into three columns. Any help is greatly

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Francesco Montesano
Hi Andreas, 2012/7/26 Andreas Hilboll li...@hilboll.de: Hi, I would like to create a figure which only contains a legend, and no axes at all. I would like to manually assign the colors. I found this here: http://stackoverflow.com/a/3302666 but from there on, I'd like to remove the

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Andreas Hilboll
Hi Andreas, 2012/7/26 Andreas Hilboll li...@hilboll.de: Hi, I would like to create a figure which only contains a legend, and no axes at all. I would like to manually assign the colors. I found this here: http://stackoverflow.com/a/3302666 but from there on, I'd like to remove the

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Daπid
On Thu, Jul 26, 2012 at 5:05 PM, Andreas Hilboll li...@hilboll.de wrote: That's really easy :) I could live with this solution, applying some external tool like pdfcrop to the result. If you can use other output, you can generate a png image, which would be easier to cut (even inside

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Damon McDougall
On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote: Hi Andreas, 2012/7/26 Andreas Hilboll li...@hilboll.de: Hi, I would like to create a figure which only contains a legend, and no axes at all. I would like to manually assign the colors. I found this here:

Re: [Matplotlib-users] How to plot only a legend?

2012-07-26 Thread Francesco Montesano
Hi, you should be also able to create the axes as: ax = plt.figure( figsize=(x,y) ).add_subplot(111) with figsize big enough to fit just the legend Cheers Francesco 2012/7/26 Damon McDougall damon.mcdoug...@gmail.com: On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote: Hi

[Matplotlib-users] plt.figure.show() not working in Ubuntu

2012-07-26 Thread Joshua Koehler
Hi all, I am getting the following error message: 'Figure' object has no attribute 'show' When running matplotlib in Ubuntu 12.04, with matplotlib 1.2.x and pylab 1.6.2. The code is set up as such: fig = pylab.figure() ... fig.show() This works fine on Mac OSX 10.6 with matplotlib 1.1.0 and

Re: [Matplotlib-users] plt.figure.show() not working in Ubuntu

2012-07-26 Thread Benjamin Root
On Thursday, July 26, 2012, Joshua Koehler wrote: Hi all, I am getting the following error message: 'Figure' object has no attribute 'show' When running matplotlib in Ubuntu 12.04, with matplotlib 1.2.x and pylab 1.6.2. The code is set up as such: fig = pylab.figure() ... fig.show()

[Matplotlib-users] ValueError: x and y must have same first dimension

2012-07-26 Thread surfcast23
Hi I have a code to plot a histogram and I am trying to add a best fit line following this example http://matplotlib.sourceforge.net/examples/pylab_examples/histogram_demo.html but run into this error Traceback (most recent call last): File /home/Astro/count_Histogram.py, line 54, in module

[Matplotlib-users] Bug in colorbar()

2012-07-26 Thread Jeffrey Spencer
I am trying to make a plot with a colorbar that has a reduced axis over which the colorbar is executed. This is set via passing in a norm to contourf: logNorm = colors.Normalize(vmax=0,vmin=-100) surf = ax.contourf(X,Y,logZ, map_scale, cmap=cm.jet, norm=logNorm) The output of