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

Function bad_idea

lib/matplotlib/tests/test_font_manager.py:324–328  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

322 b = threading.Barrier(N)
323
324 def bad_idea(n):
325 b.wait(timeout=5)
326 for j in range(100):
327 font = fm.get_font(fm.findfont("DejaVu Sans"))
328 font.set_text(str(n), 0.0, flags=LoadFlags.NO_HINTING)
329
330 threads = [
331 threading.Thread(target=bad_idea, name=f"bad_thread_{j}", args=(j,))

Callers

nothing calls this directly

Calls 3

get_fontMethod · 0.80
findfontMethod · 0.80
set_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…