code: def mpl_redraw_callback(event, tax):
      """
      Callback to properly rotate and redraw text labels when the plot is drawn
      or resized.
  
      Parameters
      ----------
      event: a matplotlib event
          either 'resize_event' or 'draw_event'
      tax: TernaryAxesSubplot
           the TernaryAxesSubplot
      """
      tax._redraw_labels()
  
imports: from collections import namedtuple
  from functools import partial
  import numpy
  from matplotlib import pyplot
  from .None import heatmapping
  from .None import lines
  from .None import plotting
  from .helpers import project_point, convert_coordinates_sequence
label_desc: Use image node_id 2 for calling a global function with example usage: mpl_redraw_callback(event, tax) without return types