font style problem!

I use this code to set plot legend font :

font = FontProperties(family ='monospace',style = 'italic',size='large',
weight='bold')
self.ax.legend( line, label, legend , prop = font )

but font style dosen't effect while other properties set properly.
what is the problem??

···

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

but font style dosen't effect while other properties set properly.
what is the problem??

Did you try using a font name ?

family define font name here.

sa6113 wrote:

···

I use this code to set plot legend font :

font = FontProperties(family ='monospace',style = 'italic',size='large',
weight='bold')
self.ax.legend( line, label, legend , prop = font )

but font style dosen't effect while other properties set properly.
what is the problem??

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