RFE: dictionnary of figures

Currently, one call figures with their number in matplotlib.

If
you have a code which draw a lot a different figures at different places with some of them being optional, this is not very convenient.

One convenient way to call figure would be to use a dictionnary of figures.

Of
course I could create some wrapper around matplotlib.figure function but it would be far more convenient if such feature would be standard in
matplotlib.

Is there any plan to implement such a feature?

Best regards,

Frédéric Parrenin

Hi Frédéric,

I don't understand what is the "dictionnary of figures" feature you are
mentionning. Maybe you could write a short mockup script using it ?

However, it's worth mentionning that you can use not only numbers in
figures but also *strings*.

fig = plt.figure('crude oil price')

I use this 95 % of the time. I think it helps a lot the figure
addressing problem.

best,
Pierre

···

Le 29/07/2013 16:34, Frédéric Parrenin a écrit :

Currently, one call figures with their number in matplotlib.
If you have a code which draw a lot a different figures at different
places with some of them being optional, this is not very convenient.

One convenient way to call figure would be to use a dictionnary of
figures.
Of course I could create some wrapper around matplotlib.figure
function but it would be far more convenient if such feature would be
standard in matplotlib.

Is there any plan to implement such a feature?

Best regards,

Frédéric Parrenin