()
| 7158 | |
| 7159 | |
| 7160 | def test_set_xy_bound(): |
| 7161 | fig = plt.figure() |
| 7162 | ax = fig.add_subplot() |
| 7163 | ax.set_xbound(2.0, 3.0) |
| 7164 | assert ax.get_xbound() == (2.0, 3.0) |
| 7165 | assert ax.get_xlim() == (2.0, 3.0) |
| 7166 | ax.set_xbound(upper=4.0) |
| 7167 | assert ax.get_xbound() == (2.0, 4.0) |
| 7168 | assert ax.get_xlim() == (2.0, 4.0) |
| 7169 | ax.set_xbound(lower=3.0) |
| 7170 | assert ax.get_xbound() == (3.0, 4.0) |
| 7171 | assert ax.get_xlim() == (3.0, 4.0) |
| 7172 | |
| 7173 | ax.set_ybound(2.0, 3.0) |
| 7174 | assert ax.get_ybound() == (2.0, 3.0) |
| 7175 | assert ax.get_ylim() == (2.0, 3.0) |
| 7176 | ax.set_ybound(upper=4.0) |
| 7177 | assert ax.get_ybound() == (2.0, 4.0) |
| 7178 | assert ax.get_ylim() == (2.0, 4.0) |
| 7179 | ax.set_ybound(lower=3.0) |
| 7180 | assert ax.get_ybound() == (3.0, 4.0) |
| 7181 | assert ax.get_ylim() == (3.0, 4.0) |
| 7182 | |
| 7183 | |
| 7184 | def test_pathological_hexbin(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…