SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] marker in a plot crashes pdf backend

From: Michael D. <md...@st...> - 2008年01月29日 21:15:18
Ok. I'll change this in SVN.
Nils Wagner wrote:
> On 2008年1月29日 15:33:46 -0500
> Michael Droettboom <md...@st...> wrote:
>> Ok, to save me the trouble of installing Python-2.4 (which doesn't 
>> feel like the culprit, but appears to be the only variable other than 
>> platform) I seem to recall a discussion on numpy about coercion of 
>> scalars to Python int's that may be the culprit here. Can you please 
>> add the following line above the line where the exception is raised in 
>> path.py, line 201, and then send me the output:
>>
>> print code, type(code), codes, type(codes)
>>
> 
> 1 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'>
> 2 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'>
> 1 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'>
> 2 <type 'numpy.uint8'> [1 2 1 2] <type 'numpy.ndarray'>
> 
>> Also, does changing:
>>
>> num_vertices = NUM_VERTICES[code]
>>
>> to
>>
>> num_vertices = NUM_VERTICES[int(code)]
>>
>> resolve the problem?
> 
> Yes.
> 
> Cheers,
> Nils
> 
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

View entire thread

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 によって変換されたページ (->オリジナル) /