X Tutup
Skip to content

Scipy/matplotlib recipe with plt.connect() has trouble in python 3 (AnnoteFinder) #5601

@danielboone

Description

@danielboone

Hi all,
There is an interesting recipe on the following link that I like to use on my plots:
http://scipy-cookbook.readthedocs.org/items/Matplotlib_Interactive_Plotting.html
(For easier testing attached is a file containing the program mpl_annote_finder.py.txt)

This recipe works perfectly on python 2. It makes use of pyplot.connect(). But for an obscure reason, on python 3 it works only at the first "click": The first time we click, the point label appear, but if we click again nothing occurs. This is the same for python 3.3 and 3.4, on Windows and Debian, on 32 an 64 bits architectures.

I think the script being okay. I'm wondering if the problem is due to python 3 itself or to the newer versions of matplotlib. Maybe can you find it?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup