#NEWLINE# def set_format_unit( self , unit ) : #NEWLINE# #INDENT# '\n        Set the unit for the major tick labels.\n\n        Parameters\n        ----------\n        unit : class:`~astropy.units.Unit`\n            The unit to which the tick labels should be converted to.\n        ' #NEWLINE# if ( not issubclass ( unit . __class__ , u . UnitBase ) ) : #NEWLINE# #INDENT# raise TypeError ( 'unit should be an astropy UnitBase subclass' ) #NEWLINE# #UNINDENT# self . _formatter_locator . format_unit = unit