
    e                        d Z ddlZddlZ ej
                         Zej                  d        ej                  d      Z	 ej                  e	      Zd ej                  e	dz         z  Zd ej                  e	dz         z  Z ej                  e	ed	d
      Z ej                  e	dz   ed	d      Z ej                  e	dz   ed	d      Zej%                  e       ej%                  e       ej%                  e        G d dej                        Z ee	ed	z  dz   dedz  z   d      Zej%                  e       edk(  r ej,                          yy)z#
Simple example using BarGraphItem
    Nzpyqtgraph example: BarGraphItem
   g?   g333333?   g333333?r)xheightwidthbrushgQ?ggQ?bc                       e Zd Zd Zy)BarGraphc                     t        d       y )Nclicked)print)selfevents     A/usr/lib/python3/dist-packages/pyqtgraph/examples/BarGraphItem.pymouseClickEventzBarGraph.mouseClickEvent   s
    i    N)__name__
__module____qualname__r    r   r   r   r      s    r   r   g?g?g?)r   yr   r	   __main__)__doc__numpynp	pyqtgraphpgplotwinsetWindowTitlearanger   siny1y2y3BarGraphItembg1bg2bg3addItemr   bgr   execr   r   r   <module>r1      s?    bggi   4 5BIIbMRVVAY6266!A#;6266!A#;boo"Cs;boo$rC@boo$rC@ C  C  C r 
 RVAXc"S&j< BzBGGI r   