#NEWLINE# def plot_biases( v_bias , h_bias , fignum = None , ttl = None ) : #NEWLINE# #INDENT# setup_plot ( ) #NEWLINE# fig = plt . figure ( figsize = ( 3 , 2 ) , num = fignum ) #NEWLINE# vmin = None #NEWLINE# vmax = None #NEWLINE# fig = plt . figure ( fignum ) #NEWLINE# plt . clf ( ) #NEWLINE# if ttl : #NEWLINE# #INDENT# fig . suptitle ( ( ttl + ( '. range=%.2f to %.2f' % ( ( vmin or float ( 'NaN' ) ) , ( vmax or float ( 'NaN' ) ) ) ) ) ) #NEWLINE# #UNINDENT# gs = gridspec . GridSpec ( 1 , 2 ) #NEWLINE# ax = fig . add_subplot ( gs [ ( 0 , 0 ) ] ) #NEWLINE# im = imagesc ( v_bias , dest = ax , vmin = vmin , vmax = vmax ) #NEWLINE# ax . set_title ( 'v bias' ) #NEWLINE# fig . colorbar ( im ) #NEWLINE# ax = fig . add_subplot ( gs [ ( 0 , 1 ) ] ) #NEWLINE# im = imagesc ( h_bias , dest = ax , vmin = vmin , vmax = vmax ) #NEWLINE# ax . set_title ( 'h bias' ) #NEWLINE# fig . colorbar ( im ) #NEWLINE# plt . draw ( )