code: def test_MatplotlibExporter_siscale(scale):
      # coarse test to verify that plot data is scaled before export when
      # autoSIPrefix is in effect (so mpl doesn't add its own multiplier label)
      plt = pg.PlotWidget()
      plt.show()
      plt.plot([0, 1, 2], [(i + 1) * scale for i in range(3)])
      # set the label so autoSIPrefix works
      plt.setLabel("left", "magnitude")
      exp = MatplotlibExporter(plt.getPlotItem())
      exp.export()
  
      mpw = MatplotlibExporter.windows[-1]
      fig = mpw.getFigure()
      ymin, ymax = fig.axes[0].get_ylim()
  
      if scale < 1:
          assert ymax > scale
      else:
          assert ymax < scale
  
file_path: pyqtgraph/tests/exporters/test_matplotlib.py
imports: from importlib.metadata import version
  import pytest
  import pyqtgraph
  from pyqtgraph.exporters import MatplotlibExporter
  import matplotlib
label_desc: Use image node_id 3 for calling a global function with example usage: test_MatplotlibExporter_siscale(scale) without return types