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

Function test_sticky_tolerance

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

Source from the content-addressed store, hash-verified

722
723@image_comparison(['sticky_tolerance.png'], remove_text=True, style="mpl20")
724def test_sticky_tolerance():
725 fig, axs = plt.subplots(2, 2)
726
727 width = .1
728
729 axs.flat[0].bar(x=0, height=width, bottom=20000.6)
730 axs.flat[0].bar(x=1, height=width, bottom=20000.1)
731
732 axs.flat[1].bar(x=0, height=-width, bottom=20000.6)
733 axs.flat[1].bar(x=1, height=-width, bottom=20000.1)
734
735 axs.flat[2].barh(y=0, width=-width, left=-20000.6)
736 axs.flat[2].barh(y=1, width=-width, left=-20000.1)
737
738 axs.flat[3].barh(y=0, width=width, left=-20000.6)
739 axs.flat[3].barh(y=1, width=width, left=-20000.1)
740
741
742@image_comparison(['sticky_tolerance_cf.png'], remove_text=True, style="mpl20")

Callers

nothing calls this directly

Calls 3

barhMethod · 0.80
subplotsMethod · 0.45
barMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…