Dynamic legends

Is this what you are looking for :
legend([""], [""])

- Thomas

Thanks, this works but is not really a solution. As you see (below), I have
to add the [''] to the list to prevent it from crashing. To me, this is a
workaround, not a solution. I can use it for now, but this should be fixed
in matplotlib imho

enabled_sources = [x for x in self.data if self.data[1] == True]
self.figure.legends =
self.figure.legend(map(lambda x: self.data[0], enabled_sources),
  enabled_sources + [''], 'upper right', shadow=True)