def test_hist_controls(): if not mpl_gr_32: pytest.skip("wonky font differences") fig, ax = plt.subplots() controls = interactive_hist( f_hist, density=True, loc=(5.5, 100), scale=(10, 15), slider_formats="{:.1f}" ) return controls.control_figures[0]
def test_hist_controls(): if not mpl_gr_32: pytest.skip("wonky font differences") fig, ax, controls = interactive_hist(f_hist, density=True, loc=(5.5, 100), scale=(10, 15)) return controls[0]
def test_hist_plot(): fig, ax, controls = interactive_hist(f_hist, density=True, figsize=2, loc=(5.5, 100), scale=(10, 15), display=False) fig.tight_layout() return fig
def test_hist_plot(): fig = figure(2) ax = fig.gca() controls = interactive_hist(f_hist, density=True, loc=(5.5, 100), scale=(10, 15)) fig.tight_layout() return fig