From: John H. <jdh...@ac...> - 2005-02-13 19:56:04
|
>>>>> "daniele" =3D=3D daniele <dga...@gm...> writes: daniele> Hi, I=B4m new to matplotlib. I=B4m writing a program using daniele> wxPython. The purpose of it is to insert some prices in a daniele> form and get a plot of them in a graph inside the main daniele> window. Is it possible to refresh the graph with the new daniele> values after a button is pushed? How? Thank you very daniele> much. DG You want to define some function that updates the data in your plot and then calls canvas.draw(). You can then connect that callback to the clicked event of your button. See, for example, embedding_in_wx3.py in the matplotlib examples directory, which does just this (thanks Andrew!) JDH |