(fig_test, fig_ref)
| 2127 | |
| 2128 | @check_figures_equal() |
| 2129 | def test_barh_decimal_height(fig_test, fig_ref): |
| 2130 | x = [1.5, 8.4, 5.3, 4.2] |
| 2131 | y = [1.1, 2.2, 3.3, 4.4] |
| 2132 | h0 = [0.7, 1.45, 1, 2] |
| 2133 | h = [Decimal(i) for i in h0] |
| 2134 | # Test image - horizontal bar chart with Decimal() height |
| 2135 | ax = fig_test.subplots() |
| 2136 | ax.barh(x, y, height=h, align='center') |
| 2137 | # Reference image |
| 2138 | ax = fig_ref.subplots() |
| 2139 | ax.barh(x, y, height=h0, align='center') |
| 2140 | |
| 2141 | |
| 2142 | def test_bar_color_none_alpha(): |