MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_hist_log_2

Function test_hist_log_2

lib/matplotlib/tests/test_axes.py:2469–2481  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

2467
2468@check_figures_equal()
2469def 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
2484def test_hist_log_barstacked():

Callers

nothing calls this directly

Calls 3

histMethod · 0.80
subplotsMethod · 0.45
set_yscaleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…