
    e                        d Z ddlZddlZddlmZ  ej                  ddd      Z ej                  e      ez  Z
 ej                         Zej                  dd       ej                  d	       ej                  ee
      Z ej                  d
dddd      Zej#                  e       ej%                  de
j'                                 ej(                  de
j'                         fd      Zej#                  e        ej,                  e      aej#                  t.                ej                  dd      Zej3                  t.                ej(                  d      Zej3                  t.               dad Z ej:                         Zej>                  jA                  e       ejC                  d       e"dk(  r ejF                          yy)aF  
This example shows how to insert text into a scene using TextItem. This class 
is for displaying text that is anchored to a particular location in the data
coordinate system, but which is always displayed unscaled. 

For text that scales with the data, use QTextItem. 
For text that can be placed in a layout, use LabelItem.
    N)QtCorei   i     zpyqtgraph example: textz<div style="text-align: center"><span style="color: #FFF;">This is the</span><br><span style="color: #FF0; font-size: 16pt;">PEAK</span></div>)g333333ӿ      ?-   w)r   r      d   )htmlanchorangleborderfilli)posr   test)r   g      )r   Z   )r   c                      t         dz   t        t              z  a t        j	                  t        t               t        t              dz
  z         t        j                  dt        t            t        t            fz         y )N   z[%0.1f, %0.1f])	indexlenx
curvePointsetPosfloattext2setTexty     9/usr/lib/python3/dist-packages/pyqtgraph/examples/text.pyupdater"   *   sR    QY#a& EeElCF1H-.	MM"ah%%99:r    
   __main__)$__doc__numpynp	pyqtgraphpgpyqtgraph.Qtr   linspacer   sinr   plot	setYRangesetWindowTitlecurveTextItemtextaddItemr   max	ArrowItemarrow
CurvePointr   r   setParentItemarrow2r   r"   QTimertimertimeoutconnectstart__name__execr   r    r!   <module>rA      s     BKKR
BFF1IMrwwy r1    - .		!A r{{  i  r|  DF  OR  Yi  j T  Aquuw  	!QUUWS1 U  R]]5!
 Z F;/   J 	B	   Z   	
; 	   f  BzBGGI r    