Commit 1b81a08
committed
Prevent exception when running animation on Agg backend.
Currently, running e.g. the strip_chart example using the agg backend
(not a particularly interesting use case, but done in particular by the
doc build) causes a "AttributeError: 'FuncAnimation' object has no
attribute '_cache_frame_data'" exception.
This is fixed by moving the setting of the `_cache_frame_data` attribute
to before the `super().__init__` call.
Also move the setting of `_init_func` next to the one of `_func`, which
seems to be a logical grouping.1 parent e9b8d3f commit 1b81a08
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1613 | 1613 | | |
1614 | 1614 | | |
1615 | 1615 | | |
| 1616 | + | |
1616 | 1617 | | |
1617 | 1618 | | |
1618 | 1619 | | |
| |||
1644 | 1645 | | |
1645 | 1646 | | |
1646 | 1647 | | |
1647 | | - | |
| 1648 | + | |
1648 | 1649 | | |
1649 | 1650 | | |
1650 | 1651 | | |
| |||
1655 | 1656 | | |
1656 | 1657 | | |
1657 | 1658 | | |
1658 | | - | |
1659 | | - | |
1660 | 1659 | | |
1661 | 1660 | | |
1662 | 1661 | | |
| |||
0 commit comments