Event handling in pyqt4

Hi all,

I tried to combine an event with an annotation.
However, the annotation is not visible, when I click on the curves.
How can I resolve the problem ?
The code is available at http://pastebin.com/QxKBZtaX
Any pointer would be appreciated.

Thanks in advance.

  Nils

Looks like a typo in your annotate function. For the xy kwarg, your x-coordinate is set as “ind[0]”. Perhaps you meant “xdata[ind][0]”?

Ben Root

···

On Wed, Feb 29, 2012 at 5:09 AM, Nils Wagner <nwagner@…878…1052…> wrote:

Hi all,

I tried to combine an event with an annotation.

However, the annotation is not visible, when I click on

the curves.

How can I resolve the problem ?

The code is available at http://pastebin.com/QxKBZtaX

Any pointer would be appreciated.

Thanks in advance.

Nils