code: def test_AxisItem_stopAxisAtTick(monkeypatch):
      def test_bottom(p, axisSpec, tickSpecs, textSpecs):
          viewPixelSize = view.viewPixelSize()
          assert isclose(
              view.mapToView(axisSpec[1]).x(),
              0.25,
              abs_tol=viewPixelSize[0],
          )
          assert isclose(
              view.mapToView(axisSpec[2]).x(),
              0.75,
              abs_tol=viewPixelSize[0],
          )
  
      def test_left(p, axisSpec, tickSpecs, textSpecs):
          viewPixelSize = view.viewPixelSize()
          assert isclose(
              view.mapToView(axisSpec[1]).y(),
              0.875,
              abs_tol=viewPixelSize[1],
          )
          assert isclose(
              view.mapToView(axisSpec[2]).y(),
              0.125,
              abs_tol=viewPixelSize[1],
          )
  
      plot = pg.PlotWidget()
      view = plot.plotItem.getViewBox()
      bottom = plot.getAxis("bottom")
      bottom.setRange(0, 1)
      bticks = [(0.25, "a"), (0.6, "b"), (0.75, "c")]
      bottom.setTicks([bticks, bticks])
      bottom.setStyle(stopAxisAtTick=(True, True))
      monkeypatch.setattr(bottom, "drawPicture", test_bottom)
  
      left = plot.getAxis("left")
      lticks = [(0.125, "a"), (0.55, "b"), (0.875, "c")]
      left.setTicks([lticks, lticks])
      left.setRange(0, 1)
      left.setStyle(stopAxisAtTick=(True, True))
      monkeypatch.setattr(left, "drawPicture", test_left)
  
      plot.show()
      app.processEvents()
      plot.close()
  
file_path: pyqtgraph/tests/graphicsItems/test_AxisItem.py
imports: from math import isclose
  import pytest
  import pyqtgraph
label_desc: Use image node_id 1 for calling a global function with example usage: test_AxisItem_stopAxisAtTick(monkeypatch) without return types