Hello Joe, I accidentally had a look at the source file you linked to and I found the copyright and license terms quite strange. Are you really transferring copyright for your work to the Free Software Foundation which is releasing it under the MIT license? I find very strange that the FSF is using a license other than the (L)GPL. Does it also mean that who wants to contribute to your project must sign a copyright assignment to the FSF?
I'm puzzled. Best, Daniele On 30/10/2013 17:58, Joe Kington wrote: > > On Oct 30, 2013 9:43 AM, "Nils Wagner" <nils...@googlemail.com > <mailto:nils...@googlemail.com>> wrote: >> >> Hi all, >> >> How can I retrieve the corresponding "color value" in percent, when I > click on the image ? >> > > You have to jump through a couple of hoops. > > Have a look at the _coords2index function in pick_info.py for > mpldatacursor. > https://github.com/joferkington/mpldatacursor/blob/master/mpldatacursor/pick_info.py > > Also, mpldatacursor might be useful for what you're doing. Not to plug > my own project too much, but it does exactly this, among other things. > > Hope that helps! > -Joe > >> fig = plt.figure() >> ax = fig.add_subplot(111) >> cax = ax.imshow(col[:,::2], interpolation='nearest',extent=[0.5,20.5,0.5,2 >> 0.5],alpha=1,picker=5) >> >> fig.canvas.mpl_connect('pick_event', onpick) >> >> def onpick(event): >> ... >> >> >> Nils >> >> >> > ------------------------------------------------------------------------------ >> Android is increasing in popularity, but the open development platform > that >> developers love is also attractive to malware creators. Download this > white >> paper to learn more about secure code signing practices that can help keep >> Android apps secure. >> > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users@lists.sourceforge.net > <mailto:Matplotlib-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > Android is increasing in popularity, but the open development platform that > developers love is also attractive to malware creators. Download this white > paper to learn more about secure code signing practices that can help keep > Android apps secure. > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users