def offset_spines(offset=10, fig=None, ax=None):
 warn_msg = '`offset_spines` is deprecated and will be removed in v0.5'
 warnings.warn(warn_msg, UserWarning)
 if ((fig is None) and (ax is None)):
  axes = plt.gcf().axes
 elif (fig is not None):
  axes = fig.axes
 elif (ax is not None):
  axes = [ax]
 for ax_i in axes:
  for spine in ax_i.spines.values():
   _set_spine_position(spine, ('outward', offset))

def offset_spines ( offset = 10 , fig = None , ax = None ) : warn_msg = '`offset_spines` is deprecated and will be removed in v0.5' warnings . warn ( warn_msg , UserWarning ) if ( ( fig is None ) and ( ax is None ) ) : axes = plt . gcf ( ) . axes elif ( fig is not None ) : axes = fig . axes elif ( ax is not None ) : axes = [ ax ] for ax_i in axes : for spine in ax_i . spines . values ( ) : _set_spine_position ( spine , ( 'outward' , offset ) )
simple function to offset spines away from axes .