Hello,

So I'm having a problem when trying to integrate networkx with matplotlib 
1.0.1. The problem is the same as the one in these posts:

http://stackoverflow.com/questions/8644233/networkx-and-matplotlib-axes-error

http://groups.google.com/group/networkx-discuss/tree/browse_frm/month/2010-08/e325429fcc342798?rnum=81&_done=/group/networkx-discuss/browse_frm/month/2010-08?

Now going back to 0.99 isn't really an option, and for 1.0.1 a quick and dirty 
fix for my problem was to add in axes.py, line 1354:
    
    def _sci(self, im):
        """
        helper for :func:`~matplotlib.pyplot.sci`;
        do not use elsewhere.
        """
        if isinstance(im, matplotlib.contour.ContourSet):
            if im.collections[0] not in self.collections:
                raise ValueError(
                    "ContourSet must be in current Axes")
        elif im not in self.images and im not in self.collections: # and not 
isinstance(im, matplotlib.collections.CircleCollection):
            raise ValueError(
            "Argument must be an image, collection, or ContourSet in this Axes")
        self._current_image = im

This however isn't really a fix  but a hack to get it working and I don't know 
how this could affect other parts of matplotlib. So I guess my questions are:

1. Is this issue fixed in some newer version than 1.0.1 and if so from which?
2. If not will this bug be handled in a future version?
3. If not to 1 and 2 is there any other 'cleaner' hack to fix this problem ?

Regards,
Bogdan
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to