;i dZddlZddlZddlmZddlmZddl m Z ej dZ e j Zede jZeee jZeeeddidd id  ZeZeeddd d ejZejZeedd eed d eejdZ e ddxxd z cc<e ej!ej"dddz Z ej#e dej"dde$e digZ e%e eedZ&e'ddZ(e()e&e(*ee'ddZ+e+*ee+)e&e'ddZ,e,j-d.d e/ed!e,d"e/ed!e(d"e/e,d#e+d"e/e,d#ed$e0d%krej1dSdS)&a This example demonstrates a very basic use of flowcharts: filter data, displaying both the input and output of the filter. The behavior of the filter can be reprogrammed by the user. Basic steps are: - create a flowchart and two plots - input noisy data to the flowchart - flowchart connects data to the first plot, where it is displayed - add a gaussian filter to lowpass the data, then display it in the second plot. N) Flowchart) QtWidgetszFlowchart Examplezpyqtgraph example: Flowchartioinout)dataIndataOut) terminalsi)sizei,dTimeg?)namevalues)info)r)zTop Plotz Bottom Plot PlotWidget)rj)pos)rGaussianFilter)rrsigmarInOutr __main__)2__doc__numpynp pyqtgraphpgpyqtgraph.metaarray metaarraypyqtgraph.flowchartr pyqtgraph.QtrmkQAppapp QMainWindowwinsetWindowTitleQWidgetcwsetCentralWidget QGridLayoutlayout setLayoutfcwidgetw addWidgetrpw1pw2showrandomnormaldatasinlinspace MetaArraylensetInputplotList createNodepw1Node setPlotListsetPlotpw2NodefNodectrlssetValueconnectTerminals__name__execPC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pyqtgraph/examples/Flowchart.pyrPs  ''''''))))))""""""bi#$$i1222YR    VYTle}IIKKaAq)))bmoobmooaa  yT""SW  {r{1c4(()))y4+"+aQTVYVYZ^V_V_B`B`'a'ace&fggg 4 C 0 0 -- )- 4 4H -- +- 6 6H &F 33 Ga BxL%+...BxL'$-000E%L'$-000E%L"Y-000 z BGIIIIIrN