def plot_line_measurement_channel(measurements_obj: measurements.Measurements,
                                  channel_name: str,
                                  group_by: str = 'player',
                                  xaxis: str = 'time',
                                  yaxis: str = 'value_float',
                                  ax: plt.Axes = None) -> None:
  """Plots a pie chart of a measurement channel."""
  if channel_name not in measurements_obj.available_channels():
    raise ValueError(f'Unknown channel: {channel_name}')

  channel = measurements_obj.get_channel(channel_name)
  data = []
  channel.subscribe(on_next=data.append)

  plot_df_line(pd.DataFrame(data), channel_name, group_by=group_by, xaxis=xaxis,
               yaxis=yaxis, ax=ax)
Plots a pie chart of a measurement channel.
concordia/utils/plotting.py