Commit f9ac8d0
committed
ENH : add dirty flag
First pass at adding awareness of 'dirty' state to the draw tree.
Changing properties of an artist (as indicated by a call to
`self.pchanged()`) will make that artists axes and figure as 'dirty'.
The state of the figure is queried by the `Gcf.draw_all` to only re-draw
figure that are dirty. This is a major performance gain for expensive
to draw figures.
This is also (maybe) setting the stage for partial re-draws.1 parent 28dcf3c commit f9ac8d0
4 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
| 120 | + | |
112 | 121 | | |
113 | 122 | | |
114 | 123 | | |
| |||
210 | 219 | | |
211 | 220 | | |
212 | 221 | | |
| 222 | + | |
213 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
214 | 227 | | |
215 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
216 | 249 | | |
217 | 250 | | |
218 | 251 | | |
| |||
572 | 605 | | |
573 | 606 | | |
574 | 607 | | |
| 608 | + | |
575 | 609 | | |
576 | 610 | | |
577 | 611 | | |
| |||
728 | 762 | | |
729 | 763 | | |
730 | 764 | | |
| 765 | + | |
731 | 766 | | |
732 | 767 | | |
733 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2064 | 2064 | | |
2065 | 2065 | | |
2066 | 2066 | | |
| 2067 | + | |
2067 | 2068 | | |
2068 | 2069 | | |
2069 | 2070 | | |
| |||
2096 | 2097 | | |
2097 | 2098 | | |
2098 | 2099 | | |
| 2100 | + | |
2099 | 2101 | | |
2100 | 2102 | | |
2101 | 2103 | | |
2102 | 2104 | | |
2103 | 2105 | | |
| 2106 | + | |
2104 | 2107 | | |
2105 | 2108 | | |
2106 | 2109 | | |
2107 | 2110 | | |
| 2111 | + | |
2108 | 2112 | | |
2109 | 2113 | | |
2110 | 2114 | | |
| 2115 | + | |
2111 | 2116 | | |
2112 | 2117 | | |
2113 | 2118 | | |
| |||
2120 | 2125 | | |
2121 | 2126 | | |
2122 | 2127 | | |
| 2128 | + | |
2123 | 2129 | | |
2124 | 2130 | | |
2125 | 2131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| 1032 | + | |
1032 | 1033 | | |
1033 | 1034 | | |
1034 | 1035 | | |
| |||
1105 | 1106 | | |
1106 | 1107 | | |
1107 | 1108 | | |
| 1109 | + | |
1108 | 1110 | | |
1109 | 1111 | | |
1110 | 1112 | | |
1111 | 1113 | | |
1112 | | - | |
| 1114 | + | |
1113 | 1115 | | |
1114 | 1116 | | |
1115 | 1117 | | |
| |||
0 commit comments