def AutoLegend(chart):
  chart._show_legend = False
  labels = []
  for series in chart.data:
    if series.label is None:
      labels.append('')
    else:
      labels.append(series.label)
      chart._show_legend = True
  if chart._show_legend:
    chart._legend_labels = labels
Runs a command on the local or a remote machine.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/graphy/formatters.py/AutoLegend--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/_RunWhileDaemonsStoppedHelper._RunCmd