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

Function test_polar_errorbar

lib/matplotlib/tests/test_polar.py:543–555  ·  view source on GitHub ↗
(order)

Source from the content-addressed store, hash-verified

541@image_comparison(baseline_images=['polar_errorbar.png'], remove_text=True,
542 style='mpl20')
543def test_polar_errorbar(order):
544 theta = np.arange(0, 2 * np.pi, np.pi / 8)
545 r = theta / np.pi / 2 + 0.5
546 fig = plt.figure(figsize=(5, 5))
547 ax = fig.add_subplot(projection='polar')
548 if order == "before":
549 ax.set_theta_zero_location("N")
550 ax.set_theta_direction(-1)
551 ax.errorbar(theta, r, xerr=0.1, yerr=0.1, capsize=7, fmt="o", c="seagreen")
552 else:
553 ax.errorbar(theta, r, xerr=0.1, yerr=0.1, capsize=7, fmt="o", c="seagreen")
554 ax.set_theta_zero_location("N")
555 ax.set_theta_direction(-1)
556
557
558def test_radial_limits_behavior():

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
add_subplotMethod · 0.80
set_theta_directionMethod · 0.80
errorbarMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…