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

Function test_fill_between_axes_limits

lib/matplotlib/tests/test_axes.py:9926–9939  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9924
9925
9926def test_fill_between_axes_limits():
9927 fig, ax = plt.subplots()
9928 x = np.arange(0, 4 * np.pi, 0.01)
9929 y = 0.1*np.sin(x)
9930 threshold = 0.075
9931 ax.plot(x, y, color='black')
9932
9933 original_lims = (ax.get_xlim(), ax.get_ylim())
9934
9935 ax.axhline(threshold, color='green', lw=2, alpha=0.7)
9936 ax.fill_between(x, 0, 1, where=y > threshold,
9937 color='green', alpha=0.5, transform=ax.get_xaxis_transform())
9938
9939 assert (ax.get_xlim(), ax.get_ylim()) == original_lims
9940
9941
9942def test_tick_param_labelfont():

Callers

nothing calls this directly

Calls 7

axhlineMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
get_xlimMethod · 0.45
get_ylimMethod · 0.45
fill_betweenMethod · 0.45
get_xaxis_transformMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…