I just saw a similar error when trying to plot some text; in my case, basemap wasn't involved.
The full error dump: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/text.py in draw(self, renderer) 486 --> 487 for line, wh, x, y in info: 488 x = x + posx 489 y = y + posy TypeError: CXX : Error creating object of type N2Py3IntE My x data were times in seconds calculated relative to a reference date, and reducing the gap cleared up my problem. This thread: http://markmail.org/message/zqfgrshmq3366mtz?q=Error+N2Py3IntE suggests that the error is due to an overflow in the underlying numerics. And ... this is where I reach the end of my expertise. -Eric On Thu, Nov 13, 2008 at 11:38 PM, John [H2O] <[EMAIL PROTECTED]> wrote: > > Hello, using matplotlib 0.98 with mpl_toolkit Basemap: > > I'm trying to create a plot with a series of ellipses over a map. I've > followed the tutorial, and can create the same figure as shown here: > http://matplotlib.sourceforge.net/users/screenshots.html#ellipses > > I can also create a series of ellipses over a map. > > Now I am trying to label each circle using the following snippet: > for item in ells: > #ells is now a tuple in the form: (Ellipse, (x,y)) and (x,y) is the same > as for the Ellipse > e = item[0] > xy = item[1] > ax.add_artist(e) > e.set_clip_box(ax.bbox) > e.set_alpha(.7) > pyplot.text(xy[0],xy[1],e.get_label()) > > however, for some reason it fails. Can someone provide some ideas on what I > am doing wrong? Also, is there more direct way to set the plots so that the > labels are drawn? > > What is strange, is that it seems to work (at least debugging print > statements after the loop are printed)... and I can move the text function > out of the loop to label the 'last' ellipse... > > As it is it fails when savefig() or show() are called. The error is: > TypeError: CXX : Error creating object of type N2Py3IntE > > THoughts? > > Thanks, > john > > -- > View this message in context: > http://www.nabble.com/plotting-labels-for-each-%27artist%27-in-a-basemap-tp20494609p20494609.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users