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

Function test_clipper

lib/matplotlib/tests/test_simplification.py:472–484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

470
471@image_comparison(['clipper_edge'], remove_text=True, style='_classic_test')
472def test_clipper():
473 dat = (0, 1, 0, 2, 0, 3, 0, 4, 0, 5)
474 fig = plt.figure(figsize=(2, 1))
475 fig.subplots_adjust(left=0, bottom=0, wspace=0, hspace=0)
476
477 ax = fig.add_axes((0, 0, 1.0, 1.0), ylim=(0, 5), autoscale_on=False)
478 ax.plot(dat)
479 ax.xaxis.set_major_locator(plt.MultipleLocator(1))
480 ax.yaxis.set_major_locator(plt.MultipleLocator(1))
481 ax.xaxis.set_ticks_position('bottom')
482 ax.yaxis.set_ticks_position('left')
483
484 ax.set_xlim(5, 9)
485
486
487@image_comparison(['para_equal_perp'], remove_text=True, style='_classic_test')

Callers

nothing calls this directly

Calls 7

figureMethod · 0.80
subplots_adjustMethod · 0.80
add_axesMethod · 0.80
plotMethod · 0.45
set_major_locatorMethod · 0.45
set_ticks_positionMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…