(fig_test, fig_ref)
| 2467 | |
| 2468 | @check_figures_equal() |
| 2469 | def test_hist_log_2(fig_test, fig_ref): |
| 2470 | axs_test = fig_test.subplots(2, 3) |
| 2471 | axs_ref = fig_ref.subplots(2, 3) |
| 2472 | for i, histtype in enumerate(["bar", "step", "stepfilled"]): |
| 2473 | # Set log scale, then call hist(). |
| 2474 | axs_test[0, i].set_yscale("log") |
| 2475 | axs_test[0, i].hist(1, 1, histtype=histtype) |
| 2476 | # Call hist(), then set log scale. |
| 2477 | axs_test[1, i].hist(1, 1, histtype=histtype) |
| 2478 | axs_test[1, i].set_yscale("log") |
| 2479 | # Use hist(..., log=True). |
| 2480 | for ax in axs_ref[:, i]: |
| 2481 | ax.hist(1, 1, log=True, histtype=histtype) |
| 2482 | |
| 2483 | |
| 2484 | def test_hist_log_barstacked(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…