Aug-04-2018, 10:57 AM
I've solved , I wrote this line :
and then in the derived (final class) I had this line for example here times new roman :
import matplotlib.font_manager as font_manager font_dirs = ['/my/custom/font/dir', ] font_files = font_manager.findSystemFonts(fontpaths=font_dirs) font_list = font_manager.createFontList(font_files) font_manager.fontManager.ttflist.extend(font_list)in the base class (I've created a quality-plot hierarchy suitable for my purpose)
and then in the derived (final class) I had this line for example here times new roman :
mpl.rcParams['font.family'] = 'Times New Roman italic'thank anyway for your help