
    e                        d dl mZ d dlmZ d dlmZ d dlmZ  eg dd edd	      fd
 edd	      fd edd	      fddddddd edd	      fdd edd	      fdddddddd d!d"d#d$d% eg d&      fd' eg d(      fd) eg d*      fd+ eg d,      fd- eg d.      fd/ eg d0      fd1d2      Z e	g d3      Z
 e	g d4      Z e	d5g      Z G d6 d7ej                        Zy8)9    )	Namespace)OrderedDict)perf_counter)QtCore)zCommand-line usagezCLIexample.pyzBasic PlottingzPlotting.pyT)filenamerecommended	ImageViewzImageView.pyParameterTreezparametertree.py)zPlotting DatasetszMultiDataPlot.py)zParameter-Function InteractionzInteractiveParameter.py)zCrosshair / Mouse interactionzcrosshair.py)zData SlicingzDataSlicing.py)zPlot CustomizationzcustomPlot.py)zTimestamps on x axiszDateAxisItem.pyzImage AnalysiszimageAnalysis.py)zMatrix DisplayzMatrixDisplayExample.pyzViewBox FeaturesViewBoxFeatures.py)zDock widgetszdockarea.py)ConsoleConsoleWidget.py)zConsole - Exception inspectionzconsole_exception_inspection.py)zRich Jupyter Consolezjupyter_console_example.py)
Histogramszhistogram.py)zBeeswarm plotzbeeswarm.py)Symbolsz
Symbols.py)z
Auto-rangezPlotAutoRange.py)zRemote PlottingzRemoteSpeedTest.py)zScrolling plotszscrollingPlots.py)zHDF5 big datazhdf5.py)Glowzglow.pyDemos))Opticszoptics_demos.py)zSpecial relativityzrelativity_demo.py)zVerlet chainzverlet_chain_demo.py)zKoch Fractalz
fractal.pyColors))z
Color MapszcolorMaps.py)zColor Map LinearizationzcolorMapsLinearized.py)zColor Gradient PlotszColorGradientPlots.pyGraphicsItems))Scatter PlotzScatterPlot.py)InfiniteLinezInfiniteLine.py)IsocurveItemzisocurve.py)	GraphItemzGraphItem.py)ErrorBarItemzErrorBarItem.py)FillBetweenItemzFillBetweenItem.py)zImageItem - videozImageItem.py)zImageItem - drawzDraw.py)ColorBarItemzColorBarItem.py)zNon-uniform ImagezNonUniformImage.py)zRegion-of-InterestzROIExamples.py)z	Bar GraphzBarGraphItem.py)GraphicsLayoutzGraphicsLayout.py)
LegendItemz	Legend.py)z	Text Itemztext.py)zLinked ViewszlinkedViews.py)ArrowzArrow.py)ViewBoxr   )zAxisItem - label overlapzAxisItem_label_overlap.py)zCustom GraphicszcustomGraphicsItem.py)zLabeled GraphzCustomGraphItem.py)PColorMeshItemzPColorMeshItem.py
Benchmarks))zVideo speed testzVideoSpeedTest.py)zLine Plot updatezPlotSpeedTest.py)zScatter Plot updatezScatterPlotSpeedTest.py)zMultiple plotszMultiPlotSpeedTest.pyz3D Graphics))
VolumetriczGLVolumeItem.py)
IsosurfacezGLIsosurface.py)zSurface PlotzGLSurfacePlot.py)r   zGLScatterPlotItem.py)ShaderszGLshaders.py)z	Line PlotzGLLinePlotItem.py)MeshzGLMeshItem.py)ImagezGLImageItem.py)TextzGLTextItem.py)BarGraphzGLBarGraphItem.py)PainterzGLPainterItem.py)zGradient LegendzGLGradientLegendItem.pyWidgets))
PlotWidgetzPlotWidget.py)SpinBoxz
SpinBox.py)ConsoleWidgetr   )zHistogram / lookup tablezHistogramLUT.py)
TreeWidgetzTreeWidget.py)ScatterPlotWidgetzScatterPlotWidget.py)DataTreeWidgetzDataTreeWidget.py)GradientWidgetzGradientWidget.py)TableWidgetzTableWidget.py)ColorButtonzColorButton.py)JoystickButtonzJoystickButton.py)
FlowchartszFlowchart.py)zCustom Flowchart NodeszFlowchartCustomNode.py))logAxisz
logAxis.py)PanningPlotzPanningPlot.py)MultiplePlotAxeszMultiplePlotAxes.py)ROItypeszROItypes.py)ScaleBarzScaleBar.py)r   z
ViewBox.py)GradientEditorzGradientEditor.py)GLViewWidgetzGLViewWidget.py)DiffTreeWidgetzDiffTreeWidget.py)RemoteGraphicsViewzRemoteGraphicsView.py)contextMenuzcontextMenu.py)designerExamplezdesignerExample.py)DateAxisItem_QtDesignerzDateAxisItem_QtDesigner.py)GraphicsScenezGraphicsScene.py)MouseSelectionzMouseSelection.py))
SimplePlotzSimplePlot.py)LogPlotTestzLogPlotTest.py)
ViewLimitszViewLimits.py)ProgressDialogzProgressDialog.pyc                   P     e Zd Z ej                  e      Zd fd	Zd Zd Z	 xZ
S )FrameCounterc                 L    t         |           d| _        d| _        || _        y Nr   )super__init__countlast_updateinterval)selfrP   	__class__s     :/usr/lib/python3/dist-packages/pyqtgraph/examples/utils.pyrM   zFrameCounter.__init__   s$    
     c                     | xj                   dz  c_         | j                  dk(  r+t               | _        | j                  | j                         y y )N   r   )rN   rO   r   
startTimerrP   )rQ   s    rS   updatezFrameCounter.update   s<    

a
q +~DOODMM* !rT   c                     t               }|| j                  z
  }| j                  |z  }|| _        d| _        | j                  j	                  |       y rK   )r   rO   rN   sigFpsUpdateemit)rQ   evtnowelapsedfpss        rS   
timerEventzFrameCounter.timerEvent   sJ    n(((jj7"
s#rT   )i  )__name__
__module____qualname__r   SignalobjectrZ   rM   rX   r`   __classcell__)rR   s   @rS   rI   rI      s"     6==(L!+$rT   rI   N)argparser   collectionsr   timer   pyqtgraph.Qtr   	examples_dictotherstrivialskiptestQObjectrI    rT   rS   <module>rr      s    #    c+cy-TJKc )^FGc i);NO	c
 .c Bc 6c 'c ,c 0c y*<$OPc 2c ,@dSTc $c $c  J!c" ;#c$ #%c& %'c( )c* '+c, .-c. -/c0 !1c2 3c4 k   5c@ {   AcJ k #  Kc| ;    }cH K !  Icd    ecB #CcD 9Ec c	P 
  
(    + 
$6>> $rT   