findobj problem!

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.

···

--
View this message in context: http://www.nabble.com/findobj-problem!-tp19505934p19505934.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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'

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.

--
View this message in context: http://www.nabble.com/findobj-problem!-tp19505934p19505951.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

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.