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 this
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
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()
> ...
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
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 :
> On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote:
>> > Hi Andreas,
>> >
>> > 2012/7/2
On Thu, Jul 26, 2012 at 06:05:39PM +0200, Andreas Hilboll wrote:
> > Hi Andreas,
> >
> > 2012/7/26 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:
> >>
> >
On Thu, Jul 26, 2012 at 5:05 PM, Andreas Hilboll 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 MPL.image). This, without
> Hi Andreas,
>
> 2012/7/26 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 t
Hi Andreas,
2012/7/26 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
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 a
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
To: Luciano Fleischfresser
Cc: ""Matplotlib-users@lists.sourcef
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 wrote:
> Still not working. The output looks
12 matches
Mail list logo