From: sunzen w. <su...@gm...> - 2007-10-26 07:08:19
|
Hi Gurus, I'm new to matplotlib programming, and get puzzled about designing picking handler for broken_barh by the OO interface. My current approach is presented as the following: 1. plot broken_barh and set picker pcol = axes.broken_barh(xseq, yseq, facecolors = colors) pcol.set_picker(True) 2. Design picking handler mycanvas.mpl_connect('pick_event', foo_pick) ..... def foo_pick(self, event): Could you give me any guidance? -- sunzen <<freedom & enjoyment>> |