()
| 552 | |
| 553 | @image_comparison(['units_rectangle.png'], style='mpl20') |
| 554 | def test_units_rectangle(): |
| 555 | import matplotlib.testing.jpl_units as U |
| 556 | U.register() |
| 557 | |
| 558 | p = mpatches.Rectangle((5*U.km, 6*U.km), 1*U.km, 2*U.km) |
| 559 | |
| 560 | fig, ax = plt.subplots() |
| 561 | ax.add_patch(p) |
| 562 | ax.set_xlim([4*U.km, 7*U.km]) |
| 563 | ax.set_ylim([5*U.km, 9*U.km]) |
| 564 | |
| 565 | |
| 566 | @image_comparison(['connection_patch.png'], style='mpl20', remove_text=True, |