sa6113 wrote: > I want to use findobj attribute by this code, > > import matplotlib.pyplot as plt > import matplotlib.text as text > . > . > . > fig = plt.figure() > for t in fig.findobj(text.Text): > t.set_family(somefamily) > > but I get this error : > Figure instance has no attribute 'findobj'
The findobj() artist method was added quite recently, so I suspect you don't have a sufficiently new version of mpl. Eric > > please help me. > > > sa6113 wrote: >> I want to use findobj attribute by this code, >> >> import matplotlib.text as text >> >> for t in fig.findobj(text.Text): >> t.set_family(somefamily) >> >> but I get this error : >> Figure instance has no attribute 'findobj' >> >> please help me. >> > ------------------------------------------------------------------------- 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