refresh embedded plot

Hi,
I´m new to matplotlib. I´m writing a program using wxPython. The
purpose of it is to insert some prices in a form and get a plot of
them in a graph inside the main window. Is it possible to refresh the
graph with the new values after a button is pushed? How?
Thank you very much.
DG