()
| 563 | |
| 564 | |
| 565 | def test_clipping_of_log(): |
| 566 | # issue 804 |
| 567 | path = Path._create_closed([(0.2, -99), (0.4, -99), (0.4, 20), (0.2, 20)]) |
| 568 | # something like this happens in plotting logarithmic histograms |
| 569 | trans = mtransforms.BlendedGenericTransform( |
| 570 | mtransforms.Affine2D(), scale.LogTransform(10, 'clip')) |
| 571 | tpath = trans.transform_path_non_affine(path) |
| 572 | result = tpath.iter_segments(trans.get_affine(), |
| 573 | clip=(0, 0, 100, 100), |
| 574 | simplify=False) |
| 575 | tpoints, tcodes = zip(*result) |
| 576 | assert_allclose(tcodes, path.codes[:-1]) # No longer closed. |
| 577 | |
| 578 | |
| 579 | class NonAffineForTest(mtransforms.Transform): |
nothing calls this directly
no test coverage detected
searching dependent graphs…