-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
- matplotlib 1.5.1
- python2.7 2.7.11
- running on Linux
- installed via Debian package
- i will check if i can create a sample showing the issue
- it's an animation, so no screenshot, a screencapturevideo could be attached (a video writer does not work, it doesnt show the legend at all)
- i just start learning Matplotlib so i assume it's not a regression
i created an animation that shows a live result-code distribution parsed from logfiles. my frames function reads a logfile (tail -f
like), parses each line for the resultcode and returns just the resultcode. the animate function increments a counter for that code from which stacked bars are drawn.
the result-codes are unknown at startup so the animate function "invents" new bars on the fly with new labels. the legend is created in the init_func (and complains that there are no labels in my plots - it does not know they show up later).
the legend shows only one label - the first one that was added. this does not change when the program runs for a while until i resize the window. in that moment the correct number of labels will be shown. is this a bug or do i have to issue some 'refresh()' method to wake up the legend?