reset graphic

Hi all

Days ago I ask for tips about to improvemente my code on http://dpaste.com/161149/

Today, it’s work ok on my web app.

I fill it a form and when press submit I generate the graphic.

But, I fill it the form again and press submit again, it will generate a second graphic

instead of reset the previous and created a new one.

so… What I need to restart my plot for not print new graphics with the previous one or on them?

well. thanks in advanced all

Samuel

I found a solutiont. sharing with everyone…

http://stackoverflow.com/questions/1874642/how-to-use-matplotlib-in-django

see ya

2010/2/24 Samuel Teixeira Santos <arcanosam@…287…>

···

Hi all

Days ago I ask for tips about to improvemente my code on http://dpaste.com/161149/

Today, it’s work ok on my web app.

I fill it a form and when press submit I generate the graphic.

But, I fill it the form again and press submit again, it will generate a second graphic

instead of reset the previous and created a new one.

so… What I need to restart my plot for not print new graphics with the previous one or on them?

well. thanks in advanced all

Samuel