;idZddlZddlZejdZejZej dZ e e e e deddd Ze ed d e e d dde dZe dZe dZejejdZeeee e ddZeddddeddeedddeZ eZ!eeZ"eZ#eedd d e $d e!$d e!$d!e#$d!e %e!%e"%e#%e dd "Z&e ddd#Z'e(gd$e(gd$e&(gd$e'(gd$e)d%krej*dSdS)&zX Demonstrate the use of layouts to control placement of multiple plots / views / labels NzGradiant Layout Example)drr)borderz!pyqtgraph example: GraphicsLayouti iXz This example demonstrates the use of GraphicsLayout to arrange items in a grid.
The items added to the layout must be subclasses of QGraphicsWidget (this includes
PlotItem, ViewBox, LabelItem, and GrphicsLayout itself). )colcolspanzLong Vertical Labeli)anglerowspanzPlot 1)titlezPlot 2T) lockAspect)rr)size)2rr)rr zKSub-layout: this layout demonstrates the use of shared axes and axis labels)rzVertical Axis LabelHorizontalAxisLabelbottomleft)rowr)rrr)rr rrr __main__)+__doc__numpynp pyqtgraphpgmkQAppapp GraphicsViewviewGraphicsLayoutlsetCentralItemshowsetWindowTitleresizetextaddLabelnextRowaddPlotp1p2 addViewBoxvb ImageItemrandomnormalimgaddItem autoRange addLayoutl2setContentsMarginsp21p22p23p24hideAxis hideButtonsp4p5plot__name__execUC:\PYTHON\MyICR_Workspace\venv\Lib\site-packages\pyqtgraph/examples/GraphicsLayout.pyrFs bi)**rB]+++A 7888 C  4Q """  Q 777YYXYYYXY\\T\""bl29###3344 3   [[8[,,b"b"%%% Ycd eee  !a 888jjlljjll jjlljjll  !q! 444 X X V VYY1!YYY1!QY''     z BGIIIIIrD