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

Function test_log_scales

lib/matplotlib/tests/test_scale.py:67–76  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

65
66@check_figures_equal()
67def test_log_scales(fig_test, fig_ref):
68 ax_test = fig_test.add_subplot(122, yscale='log', xscale='symlog')
69 ax_test.axvline(24.1)
70 ax_test.axhline(24.1)
71 xlim = ax_test.get_xlim()
72 ylim = ax_test.get_ylim()
73 ax_ref = fig_ref.add_subplot(122, yscale='log', xscale='symlog')
74 ax_ref.set(xlim=xlim, ylim=ylim)
75 ax_ref.plot([24.1, 24.1], ylim, 'b')
76 ax_ref.plot(xlim, [24.1, 24.1], 'b')
77
78
79def test_symlog_mask_nan():

Callers

nothing calls this directly

Calls 7

add_subplotMethod · 0.80
axvlineMethod · 0.80
axhlineMethod · 0.80
get_xlimMethod · 0.45
get_ylimMethod · 0.45
setMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…