SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Jordan D. <jdawe@u.washington.edu> - 2005年09月22日 00:10:26
contourf appears to be broken in matplotlib-0.84 when one attempts to 
use the 'colors=' kwarg. I just updated from 0.83.2, and ran a script 
that worked fine before.
This command fails:
contourf( var1[0,:,:], colors=(.2,.35,.5,.65,.85,1.) )
while this command:
contourf( var1[0,:,:] )
succeeds. The failure message is:
Traceback (most recent call last):
 File "./kuroshio_surface_plus.py", line 24, in ?
 contourf(var1[0,:,:], colors=contourlist)
 File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 
1807, in contourf
 ret = gca().contourf(*args, **kwargs)
 File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 1255, 
in contourf
 return self._contourHelper.contourf(*args, **kwargs)
 File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 
779, in contourf
 mappable.level_upper = lev[-1]
AttributeError: 'NoneType' object has no attribute 'level_upper'
any ideas?
Jordan Dawe
From: Eric F. <ef...@ha...> - 2005年09月22日 02:46:28
Jordan,
Correct. I sent John a patch to fix that, but it didn't make it in time 
for 0.84. It was a fairly large patch, not a quick fix, so John may 
want to ponder it, or ask me to change some things, before committing it 
to CVS.
Eric
Jordan Dawe wrote:
> contourf appears to be broken in matplotlib-0.84 when one attempts to 
> use the 'colors=' kwarg. I just updated from 0.83.2, and ran a script 
> that worked fine before.
> 
> This command fails:
> 
> contourf( var1[0,:,:], colors=(.2,.35,.5,.65,.85,1.) )
From: John H. <jdh...@ac...> - 2005年09月24日 19:29:55
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 Eric> Jordan, Correct. I sent John a patch to fix that, but it
 Eric> didn't make it in time for 0.84. It was a fairly large
 Eric> patch, not a quick fix, so John may want to ponder it, or
 Eric> ask me to change some things, before committing it to CVS.
Thanks for the reminder here. I was unaware that there was an
outstanding patch on this one. Would it be too much trouble to roll
up a new one against CVS, or even just resent the original one,
because you've sent me a number of patches and I'm not sure which one
this one is.
Or better yet, send me an sf ID and I'll add you to the commit list.
Thanks!
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /