| 722 | |
| 723 | @image_comparison(['sticky_tolerance.png'], remove_text=True, style="mpl20") |
| 724 | def test_sticky_tolerance(): |
| 725 | fig, axs = plt.subplots(2, 2) |
| 726 | |
| 727 | width = .1 |
| 728 | |
| 729 | axs.flat[0].bar(x=0, height=width, bottom=20000.6) |
| 730 | axs.flat[0].bar(x=1, height=width, bottom=20000.1) |
| 731 | |
| 732 | axs.flat[1].bar(x=0, height=-width, bottom=20000.6) |
| 733 | axs.flat[1].bar(x=1, height=-width, bottom=20000.1) |
| 734 | |
| 735 | axs.flat[2].barh(y=0, width=-width, left=-20000.6) |
| 736 | axs.flat[2].barh(y=1, width=-width, left=-20000.1) |
| 737 | |
| 738 | axs.flat[3].barh(y=0, width=width, left=-20000.6) |
| 739 | axs.flat[3].barh(y=1, width=width, left=-20000.1) |
| 740 | |
| 741 | |
| 742 | @image_comparison(['sticky_tolerance_cf.png'], remove_text=True, style="mpl20") |