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

Function test_buffer_size

lib/matplotlib/tests/test_text.py:757–767  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

755
756@check_figures_equal()
757def test_buffer_size(fig_test, fig_ref):
758 # On old versions of the Agg renderer, large non-ascii single-character
759 # strings (here, "€") would be rendered clipped because the rendering
760 # buffer would be set by the physical size of the smaller "a" character.
761 ax = fig_test.add_subplot()
762 ax.set_yticks([0, 1])
763 ax.set_yticklabels(["€", "a"])
764 ax.yaxis.majorTicks[1].label1.set_color("w")
765 ax = fig_ref.add_subplot()
766 ax.set_yticks([0, 1])
767 ax.set_yticklabels(["€", ""])
768
769
770def test_fontproperties_kwarg_precedence():

Callers

nothing calls this directly

Calls 3

add_subplotMethod · 0.80
set_yticksMethod · 0.80
set_colorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…