def create_figure():
 (f, ax) = plt.subplots()
 ax.plot(np.arange(20), np.arange(20))
 f.set_facecolor(FACE_COLOR)
 f.dpi = DPI
 matplotlib.rcParams.update({'font.size': FONT_SIZE})
 return f

def create_figure ( ) : ( f , ax ) = plt . subplots ( ) ax . plot ( np . arange ( 20 ) , np . arange ( 20 ) ) f . set_facecolor ( FACE_COLOR ) f . dpi = DPI matplotlib . rcParams . update ( { 'font.size' : FONT_SIZE } ) return f
simply create a figure with the default settings .