def adjust_axes(axes, remove_spines=('top', 'right'), grid=True):
 axes = ([axes] if (not isinstance(axes, (list, tuple, np.ndarray))) else axes)
 for ax in axes:
  if grid:
   ax.grid(zorder=0)
  for key in remove_spines:
   ax.spines[key].set_visible(False)

def adjust_axes ( axes , remove_spines = ( 'top' , 'right' ) , grid = True ) : axes = ( [ axes ] if ( not isinstance ( axes , ( list , tuple , np . ndarray ) ) ) else axes ) for ax in axes : if grid : ax . grid ( zorder = 0 ) for key in remove_spines : ax . spines [ key ] . set_visible ( False )
adjust some properties of axes .