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,
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.
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
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
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
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
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
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:
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
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
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()
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
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
13 matches
Mail list logo