def get_spine_visible(ax, spine_key):
 spine = ax.spines[spine_key]
 ax_frame_on = ax.get_frame_on()
 spine_frame_like = spine.is_frame_like()
 if (not spine.get_visible()):
  return False
 elif (not spine._edgecolor[(-1)]):
  return False
 elif ((not ax_frame_on) and spine_frame_like):
  return False
 elif (ax_frame_on and spine_frame_like):
  return True
 elif ((not ax_frame_on) and (not spine_frame_like)):
  return True
 else:
  return False

def get_spine_visible ( ax , spine_key ) : spine = ax . spines [ spine_key ] ax_frame_on = ax . get_frame_on ( ) spine_frame_like = spine . is_frame_like ( ) if ( not spine . get_visible ( ) ) : return False elif ( not spine . _edgecolor [ ( - 1 ) ] ) : return False elif ( ( not ax_frame_on ) and spine_frame_like ) : return False elif ( ax_frame_on and spine_frame_like ) : return True elif ( ( not ax_frame_on ) and ( not spine_frame_like ) ) : return True else : return False
return some spine parameters for the spine .