Andrea Mastrangelo
2014-09-30 21:40:41 UTC
I i'm a newbie of python, wxpython and matplotlib.
I've a question about the update of a drawer graph, how can i do it?
i wrote that, it works, but i don't know if it's the best way!
figura = matplotlib.figure.Figure(figsize=(5,5))
grafico_1 = figura.add_subplot(211)
grafico_1.plot(x,y)
canvas = FigureCanvas (MainWindow, -1, figura)
#updatedatas
grafico_1.hold(False)
grafico_1.plot((1,2,3,4),(1,2,3,1))
canvas.draw()
Then i need to call automatically this function too, i need a call every
seconds, how can i do?
Thank you for helping me and excuse for my bad english
Andrea
I've a question about the update of a drawer graph, how can i do it?
i wrote that, it works, but i don't know if it's the best way!
figura = matplotlib.figure.Figure(figsize=(5,5))
grafico_1 = figura.add_subplot(211)
grafico_1.plot(x,y)
canvas = FigureCanvas (MainWindow, -1, figura)
#updatedatas
grafico_1.hold(False)
grafico_1.plot((1,2,3,4),(1,2,3,1))
canvas.draw()
Then i need to call automatically this function too, i need a call every
seconds, how can i do?
Thank you for helping me and excuse for my bad english
Andrea
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.