code: def adjustWPPointer(self):
          '''Adjust the position and orientation of
          the waypoint pointer.'''
          self.headingWPText.set_size(self.fontSize) 
          headingRotate = mpl.transforms.Affine2D().rotate_deg_around(0.0,0.0,-self.wpBearing+self.heading)+self.axes.transData
          self.headingWPText.set_transform(headingRotate)
          angle = self.wpBearing - self.heading
          if angle < 0:
              angle += 360
          if (angle > 90) and (angle < 270):
              headRot = angle-180
          else:
              headRot = angle
          self.headingWPText.set_rotation(-headRot)
          self.headingWPTri.set_transform(headingRotate)
          self.headingWPText.set_text('%.f' % (angle)f adjustWPPointer(self):
          '''Adjust the position and orientation of
          the waypoint pointer.'''
          self.headingWPText.set_size(self.fontSize) 
          headingRotate = mpl.transforms.Affine2D().rotate_deg_around(0.0,0.0,-self.wpBearing+self.heading)+self.axes.transData
          self.headingWPText.set_transform(headingRotate)
          angle = self.wpBearing - self.heading
          if angle < 0:
              angle += 360
          if (angle > 90) and (angle < 270):
              headRot = angle-180
          else:
              headRot = angle
          self.headingWPText.set_rotation(-headRot)
          self.headingWPTri.set_transform(headingRotate)
          self.headingWPText.set_text('%.f' % (angle))
docs: Adjust the position and orientation of
          the waypoint pointer.