joferkington / mpldatacursor

Interactive "data cursors" (a.k.a. annotation pop-ups) for matplotlib
MIT License
194 stars 47 forks source link

Fix multi_highlight_example on Python3. #64

Closed anntzer closed 8 years ago

anntzer commented 8 years ago

On Python3 zip returns an iterator, so the earlier

self.artist_map.update([pair[::-1] for pair in paired_artists])

had no effect. Replace by iterating on the new dict itself.