def tick_update_position(tick, tickxs, tickys, labelpos):
 for (label, on) in ((tick.label1, tick.label1On), (tick.label2, tick.label2On)):
  if on:
   label.set_position(labelpos)
 (tick.tick1On, tick.tick2On) = (True, False)
 tick.tick1line.set_linestyle(u'-')
 tick.tick1line.set_marker(u'')
 tick.tick1line.set_data(tickxs, tickys)
 tick.gridline.set_data(0, 0)

def tick_update_position ( tick , tickxs , tickys , labelpos ) : for ( label , on ) in ( ( tick . label1 , tick . label1On ) , ( tick . label2 , tick . label2On ) ) : if on : label . set_position ( labelpos ) ( tick . tick1On , tick . tick2On ) = ( True , False ) tick . tick1line . set_linestyle ( u'-' ) tick . tick1line . set_marker ( u'' ) tick . tick1line . set_data ( tickxs , tickys ) tick . gridline . set_data ( 0 , 0 )
update tick line and label position and style .