SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] bug in PolygonInteractor

From: Rob H. <he...@ta...> - 2007年01月20日 21:27:42
Attachments: polyclick.py polygon.py
There is a bug in PolygonInteractor -- the non-existent 'verts' is 
reference. Note, there is a verts attribute in some of the inherited 
Polygon classes, but not in the Polygon class itself. This is easy 
to fix. Just remove the unnecessary line:
 self.poly.verts = list(self.poly.verts)
and change all references of poly.verts to poly.xy.
This works fine for me. I found this while creating an interactive 
polygon creator, attached for those interested. Feel free to use 
this routine however you wish.

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