()
| 90 | |
| 91 | |
| 92 | def test_offsetbox_loc_codes(): |
| 93 | # Check that valid string location codes all work with an AnchoredOffsetbox |
| 94 | codes = {'upper right': 1, |
| 95 | 'upper left': 2, |
| 96 | 'lower left': 3, |
| 97 | 'lower right': 4, |
| 98 | 'right': 5, |
| 99 | 'center left': 6, |
| 100 | 'center right': 7, |
| 101 | 'lower center': 8, |
| 102 | 'upper center': 9, |
| 103 | 'center': 10, |
| 104 | } |
| 105 | fig, ax = plt.subplots() |
| 106 | da = DrawingArea(100, 100) |
| 107 | for code in codes: |
| 108 | anchored_box = AnchoredOffsetbox(loc=code, child=da) |
| 109 | ax.add_artist(anchored_box) |
| 110 | fig.canvas.draw() |
| 111 | |
| 112 | |
| 113 | def test_expand_with_tight_layout(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…