On Thu, Jul 2, 2009 at 1:00 PM, Pierre GM<pgmdevl...@gmail.com> wrote:
> Eh, can I play ?
> * Something I'd really like to see is a way to access a given patch/
> line/collection/... by a string (a name) instead of having to find the
> corresponding element in a list. That would mean converting lists into
> dictionaries, or at least provide a way to map the list to a dictionary.
> An example of application would be "del lines['first']" to delete the
> line named 'first'. By default, if no name is explicitly given to an
> object, we could use the order in which it is drawn...
>

Take a look at findobj with an arbitrary match function (eg set the
label property on the obj you want to find and then call find obj with
a function that checks the label)

http://matplotlib.sourceforge.net/examples/pylab_examples/findobj_demo.html

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to