()
| 1279 | |
| 1280 | |
| 1281 | def test_set_offsets_late(): |
| 1282 | identity = mtransforms.IdentityTransform() |
| 1283 | sizes = [2] |
| 1284 | |
| 1285 | null = mcollections.CircleCollection(sizes=sizes) |
| 1286 | |
| 1287 | init = mcollections.CircleCollection(sizes=sizes, offsets=(10, 10)) |
| 1288 | |
| 1289 | late = mcollections.CircleCollection(sizes=sizes) |
| 1290 | late.set_offsets((10, 10)) |
| 1291 | |
| 1292 | # Bbox.__eq__ doesn't compare bounds |
| 1293 | null_bounds = null.get_datalim(identity).bounds |
| 1294 | init_bounds = init.get_datalim(identity).bounds |
| 1295 | late_bounds = late.get_datalim(identity).bounds |
| 1296 | |
| 1297 | # offsets and transform are applied when set after initialization |
| 1298 | assert null_bounds != init_bounds |
| 1299 | assert init_bounds == late_bounds |
| 1300 | |
| 1301 | |
| 1302 | def test_set_offset_transform(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…