
    eT                        d Z ddlZddlZddlZddlmZ  ej                  d      Z	 ej                  dd      Zej                  dd	       ej                  d
       ej                  j                  d      Zeddxxx dz  ccc ej#                  de      Zej'                  dd       ej#                  d      Zej+                  d       ej-                         Z ej                         Zd Z ej4                         Zej8                  j;                  e       ej=                  d       edk(  r ej@                          yy)zP
This example demonstrates the different auto-ranging capabilities of ViewBoxes
    N)QtCorezPlot Auto Range ExampleTzPlot auto-range examples)showtitlei   iX  z pyqtgraph example: PlotAutoRanged   )size2   6   
   z95th percentile range)r   yr   gffffff?zAuto Pan Only)r   )r   c                      t        j                          t        z
  } t        j                  d      t        j                  |       z  }|ddxxx t        j                  |       z  ccc t
        j                  |       y )Nr   r   <   )timet0nponessincurvesetData)tdatas     B/usr/lib/python3/dist-packages/pyqtgraph/examples/PlotAutoRange.pyupdater      sP    		bA773<"&&)#DBK266!9K	MM$    __main__)!__doc__r   numpyr   	pyqtgraphpgpyqtgraph.Qtr   mkQAppappGraphicsLayoutWidgetwinresizesetWindowTitlerandomnormaldaddPlotp1enableAutoRangep2
setAutoPanplotr   r   r   QTimertimertimeoutconnectstart__name__exec r   r   <module>r7      s%      bii)*b4/IJ 

3s    5 6II# "RB[[.![4   3  	[[['  
	TYY[ 	   f  BzBGGI r   