original_docstring: 
      Create a stack plot representing the labels repartition with their history.
  
      :param label2counts: A dict holding the counts for each label, of the form
          {label: [count_at_step_0, count_at_step_1, ...]}.
      :param counters: The steps the counts were taken at.
      :param colors: The colors to use in the chart.
      
docstring: Create a stack plot representing the labels repartition with their history.
docstring_tokens: Create a stack plot representing the labels repartition with their history .
code: def default_history_repartition_image_creator(
      label2counts: Dict[int, List[int]],
      counters: List[int],
      colors: Union[ndarray, Iterable, int, float] = SEABORN_COLORS,
  ):
      """
      Create a stack plot representing the labels repartition with their history.
  
      :param label2counts: A dict holding the counts for each label, of the form
          {label: [count_at_step_0, count_at_step_1, ...]}.
      :param counters: The steps the counts were taken at.
      :param colors: The colors to use in the chart.
      """
      fig, ax = plt.subplots()
      ax: Axes
  
      ax.stackplot(
          counters,
          label2counts.values(),
          labels=label2counts.keys(),
          colors=colors,
      )
      ax.legend(loc='upper left')
      ax.set_ylabel("Number of examples")
      ax.set_xlabel("step")
  
      fig.tight_layout()
      return fig
code_tokens: def default_history_repartition_image_creator ( label2counts : Dict [ int , List [ int ] ] , counters : List [ int ] , colors : Union [ ndarray , Iterable , int , float ] = SEABORN_COLORS , ) : fig , ax = plt . subplots ( ) ax : Axes ax . stackplot ( counters , label2counts . values ( ) , labels = label2counts . keys ( ) , colors = colors , ) ax . legend ( loc = 'upper left' ) ax . set_ylabel ( "Number of examples" ) ax . set_xlabel ( "step" ) fig . tight_layout ( ) return fig
short_docstring: Create a stack plot representing the labels repartition with their history.
short_docstring_tokens: Create a stack plot representing the labels repartition with their history .
comment: """
      Create a stack plot representing the labels repartition with their history.
  
      :param label2counts: A dict holding the counts for each label, of the form
          {label: [count_at_step_0, count_at_step_1, ...]}.
      :param counters: The steps the counts were taken at.
      :param colors: The colors to use in the chart.
      """