Commit 6389d14
committed
Let the Javascript side control when to fetch new frames. draw_idle
sends a "draw" message to the browser. If the browser is not already
waiting on another frame, it sends a "draw" message back to the server
which then returns an actual frame. The nice thing about this approach
is that it's completely timerless.1 parent 68ca1a5 commit 6389d14
File tree
4 files changed
+20
-30
lines changed- examples/user_interfaces
- lib/matplotlib/backends
- web_backend
4 files changed
+20
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 148 | | |
162 | 149 | | |
163 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 67 | | |
72 | 68 | | |
73 | 69 | | |
| |||
87 | 83 | | |
88 | 84 | | |
89 | 85 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 86 | + | |
96 | 87 | | |
97 | 88 | | |
98 | 89 | | |
| |||
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
170 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
171 | 164 | | |
172 | 165 | | |
173 | 166 | | |
| |||
210 | 203 | | |
211 | 204 | | |
212 | 205 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 206 | | |
217 | 207 | | |
218 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
221 | 232 | | |
222 | 233 | | |
223 | 234 | | |
| |||
249 | 260 | | |
250 | 261 | | |
251 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
358 | 373 | | |
359 | 374 | | |
360 | 375 | | |
361 | | - | |
362 | | - | |
363 | 376 | | |
364 | 377 | | |
365 | 378 | | |
| |||
0 commit comments