| 2099 | |
| 2100 | @check_figures_equal() |
| 2101 | def test_barh_decimal_center(fig_test, fig_ref): |
| 2102 | ax = fig_test.subplots() |
| 2103 | x0 = [1.5, 8.4, 5.3, 4.2] |
| 2104 | y0 = [1.1, 2.2, 3.3, 4.4] |
| 2105 | x = [Decimal(x) for x in x0] |
| 2106 | y = [Decimal(y) for y in y0] |
| 2107 | # Test image - horizontal, align-center bar chart with Decimal() input |
| 2108 | ax.barh(x, y, height=[0.5, 0.5, 1, 1], align='center') |
| 2109 | # Reference image |
| 2110 | ax = fig_ref.subplots() |
| 2111 | ax.barh(x0, y0, height=[0.5, 0.5, 1, 1], align='center') |
| 2112 | |
| 2113 | |
| 2114 | @check_figures_equal() |