
    e                     f   d Z ddlZddlZ ej
                  d      Z ej                         Z ej                  d      Z
ej                  e
       ej                          ej                  d       ej                  dd       d	Ze
j!                  ed
d       e
j#                          e
j!                  ddd       e
j%                  d      Ze
j%                  d      Ze
j+                  d      Z ej.                  ej0                  j3                  d            Zej7                  e       ej9                          e
j#                          e
j;                  dd      Zej?                  dddd       ej!                  dd       ej#                          ej!                  ddd       ej%                         Z ej%                         Z!ej#                          ej%                         Z"ej%                         Z#ej#                          ej!                  dd
d       e jI                  d        e!jI                  d        e!jI                  d!       e#jI                  d!       e jK                          e!jK                          e"jK                          e#jK                          e
j%                  dd
"      Z&e
j%                  ddd#      Z'ejQ                  g d$       ejQ                  g d$       e&jQ                  g d$       e'jQ                  g d$       e)d%k(  r ejT                          yy)&zX
Demonstrate the use of layouts to control placement of multiple plots / views /
labels
    NzGradiant Layout Example)d   r   r   )borderz!pyqtgraph example: GraphicsLayouti   iX  z
This example demonstrates the use of GraphicsLayout to arrange items in a grid.<br>
The items added to the layout must be subclasses of QGraphicsWidget (this includes <br>
PlotItem, ViewBox, LabelItem, and GrphicsLayout itself).
      )colcolspanzLong Vertical Labeli   )anglerowspanzPlot 1)titlezPlot 2T)
lockAspect)r   r   )size)2   r   r   )r   r   
   zKSub-layout: this layout demonstrates the use of shared axes and axis labels)r   zVertical Axis Label   HorizontalAxisLabelbottomleft)rowr   )r   r   r   )r   r	   r   r   r	      __main__)+__doc__numpynp	pyqtgraphpgmkQAppappGraphicsViewviewGraphicsLayoutlsetCentralItemshowsetWindowTitleresizetextaddLabelnextRowaddPlotp1p2
addViewBoxvb	ImageItemrandomnormalimgaddItem	autoRange	addLayoutl2setContentsMarginsp21p22p23p24hideAxishideButtonsp4p5plot__name__exec     C/usr/lib/python3/dist-packages/pyqtgraph/examples/GraphicsLayout.py<module>rF      s    bii)*rB]+   A  		   7 8 C 
 

4Q
 " 		 

 Q
 7 YYXYYYXY\\T\"bll299###34 

3 
 		[[8[,   b"b" % Ycd e 

 !a 8jjljjl 

jjljjl 

 !q! 4 X  X  V  V          YY1!YYY1!QY'        zBGGI rD   