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

Function test_stem_polar_baseline

lib/matplotlib/tests/test_axes.py:5090–5098  ·  view source on GitHub ↗

Test that the baseline is interpolated so that it will follow the radius.

()

Source from the content-addressed store, hash-verified

5088
5089
5090def test_stem_polar_baseline():
5091 """Test that the baseline is interpolated so that it will follow the radius."""
5092 fig = plt.figure()
5093 ax = fig.add_subplot(projection='polar')
5094 x = np.linspace(1.57, 3.14, 10)
5095 y = np.linspace(0, 1, 10)
5096 bottom = 0.5
5097 container = ax.stem(x, y, bottom=bottom)
5098 assert container.baseline.get_path()._interpolation_steps > 100
5099
5100
5101@image_comparison(['hist_stacked_stepfilled_alpha.png'], style='mpl20')

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_subplotMethod · 0.80
stemMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…