From: John H. <jdh...@ac...> - 2004-05-03 16:49:04
|
>>>>> "Flavio" == Flavio Codeco Coelho <fcc...@fi...> writes: Flavio> cannot import name FigureManager Right, I was just winging it off the top of my head, as I am now :-). Remember you have the src code which is the ultimate reference so when I say something stupid you can always get the real names by looking at backend_wx.py and backend_wxagg.py. FYI, they are identical except backend_wxagg subclasses FigureFrameWx and FigureCanvasWx to make the agg variants. How about something like from matplotlib.backends_wx import FigureManagerWx as FigureManager from matplotlib.backends_wx import NavigationToolbarWx as NavigationToolbar from matplotlib.backends_wxagg import FigureCanvasWxAgg as FigureCanvas I *think* that should do it. Flavio> Well, Here I was misled by the example embedded_in_wx, Flavio> which has that line.:-/ Should I just delete the darn Flavio> line?:) I think you should keep it. I am not sure what you are doing in all your code (ie, whether you use the matlab interface). Since we know it could do harm to remove it and can't do harm to keep it, I say keep it. Flavio> well maybe in CVS it works but in 0.53.1 I can' t import Flavio> FigureManager from backend_wxagg.:~( See above Flavio> Should I not import FigureCanvasWxAgg instead of Flavio> FigureCanvasWx? Yep... Good luck! JDH |