
    e
                     "   d Z ddlZ ej                           ej                         Zej                          ej                  d       ej                  a	t        j                  d        ej                         at        j                  d       t        j                         j                  t               t        j!                  d      j#                  t               t        j%                  t               t        j!                  d      j'                  dd	        ej                         a ej*                  d      Zt        j.                  j                  ed
d       t        j                         j                  t(               ej#                  t(               t(        j%                  t               ej1                  d       ej'                  dd	       d Z e        t        j4                  j6                  j9                  e       t        j;                  g d       t        j                   ej<                  g dd             t(        j                   ej<                  g dd             edk(  r ej@                          yy)z~
Demonstrates a way to put multiple axes around a single plot. 

(This will eventually become a built-in feature of PlotItem)
    Nz#pyqtgraph example: MultiplePlotAxeszaxis 1)leftrightaxis2z#0000ff)color      izaxis 3z#ff0000c                     t         j                  t        j                  j	                                t
        j                  t        j                  j	                                t         j                  t        j                  t         j                         t
        j                  t        j                  t
        j                         y )N)p2setGeometryp1vbsceneBoundingRectp3linkedViewChangedXAxis     E/usr/lib/python3/dist-packages/pyqtgraph/examples/MultiplePlotAxes.pyupdateViewsr   '   sh     NN255**,-NN255**,-
 ))r   )   r                )
      (   P   r   r   b)pen)i  i@  i   i     d   r__main__)!__doc__	pyqtgraphpgmkQApp
PlotWidgetpwshowsetWindowTitleplotItemr   	setLabelsViewBoxr
   showAxissceneaddItemgetAxis
linkToViewsetXLinksetLabelr   AxisItemax3layout	setZValuer   r   
sigResizedconnectplotPlotCurveItem__name__execr   r   r   <module>rA      s    			R]]_ 	   7 8[[ (  RZZ\ G  
  2  

7   r " B 

7   WI  6 RZZ\bkk' 		  #q!  
  2  r  B f  XY '
*       %   

2/S9 : 

27SA BzBGGI r   