[matplotlib-devel] crazy ideas for MPL

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

···

On Thu, Jul 2, 2009 at 1:00 PM, Pierre GM<pgmdevlist@...287...> 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...

Is this an ideas thread?
How about a "copy image to clipboard" button for the toolbar.

Gary R.

Pierre GM 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...