#NEWLINE# def plot_weights( support , weights_func , xlabels , xticks ) : #NEWLINE# #INDENT# fig = plt . figure ( figsize = ( 12 , 8 ) ) #NEWLINE# ax = fig . add_subplot ( 111 ) #NEWLINE# ax . plot ( support , weights_func ( support ) ) #NEWLINE# ax . set_xticks ( xticks ) #NEWLINE# ax . set_xticklabels ( xlabels , fontsize = 16 ) #NEWLINE# ax . set_ylim ( ( - 0.1 ) , 1.1 ) #NEWLINE# return ax