On Fri, Jul 06, 2007 at 05:31:58PM -0400, Paul Kienzle wrote:
> On Fri, Jul 06, 2007 at 10:15:48AM -0500, John Hunter wrote:
> > On 7/6/07, Paul Kienzle <[EMAIL PROTECTED]> wrote:
> > > Instead I would like to start by splitting the current pick method
> > > into two parts:
> > >    contains(event,picker)  which returns truth value,details
> > >    pick(event) which generates the current pick event
> > 
> > I don't really understand the contains part -- can you elaborate a little 
> > bit?
> > 
> > I would definitely be amenable to accepting patches that improve the
> > current API :-)
> 
> I have an initial patch against CVS available which implements
> contains() for most classes.  Legend is too complex for simple hacks.
> I have a number of questions regarding details of implementation,
> in particular determining sizes of things on the plot.
> 
> The question now is what to do with it? I can post it to the patch
> tracker on sourceforge, but I'm hesitant to do so since it still
> has issues.  Do you want it there or on the list?

I submitted the 'contains' patch to the patch tracker on sourceforge.

I've worked out most of the issues, including selecting lines instead
of just points.  I still haven't addressed legend picking, and I don't
know how to handle line offsets.  I'm also unhappy with relying on
a cached renderer for some of the size checks (e.g., text extents).
One solution is to send this along with the 'contains' test, though
that would mean changing the interface to pick.  Any other suggestions?

In backend_bases.FigureCanvasBase.__init__ there is an "if False" 
statement.  Turn it to True and all objects on every graph will be
highlighted as the mouse hovers over them and restored when it moves
away.  I worked through many of the demos in the repository to check
that the various objects are recognized.

Sorry about the size of the patch --- I wanted to keep the system in a
working state so I had to do everything.  Also I spent some time 
writing __str__ methods for a lot of the artists so that it was easier 
for me to debug.  Let me know if you want these stripped and sent as 
a separate patch.

- Paul

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to