()
| 234 | |
| 235 | |
| 236 | def test_negative_rect(): |
| 237 | # These two rectangles have the same vertices, but starting from a |
| 238 | # different point. (We also drop the last vertex, which is a duplicate.) |
| 239 | pos_vertices = Rectangle((-3, -2), 3, 2).get_verts()[:-1] |
| 240 | neg_vertices = Rectangle((0, 0), -3, -2).get_verts()[:-1] |
| 241 | assert_array_equal(np.roll(neg_vertices, 2, 0), pos_vertices) |
| 242 | |
| 243 | |
| 244 | @image_comparison(['clip_to_bbox.png'], style='mpl20') |