469,578 Members | 1,775 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

matplotlib real time grap.

Hello at all.
I need to do a real time plot where on the frame i have this like limit
line:
import math
dati = []
for freq in range(int(freqiniziale), (int(freqfinale )+ 1)):
forza = float(massa) * ((2*math.pi*freq)**2)/10
dati.append(forza)
ax1 = subplot(111)
plot(dati)
xlabel('Frequenza HZ')
ylabel('Deg')
title('Grafico Calibrazione')
ax2 = twinx()
plot([0.1,0.2,0.3],'r-')
ylabel('Forza')
ax2.yaxis.tick_right()
#dlg = wx.FileDialog(self, "Choose a file", ".", "", "*.*",
wx.SAVE)
#try:
# if dlg.ShowModal() == wx.ID_OK:
# filename = dlg.GetPath()

# savefig(filename+'.pdf')
#finally:
# dlg.Destroy()
show()

with this i have the grap on the screen but i have to update every time
that i receive others data coming from two instruments (10 seconds),
how i can update the grap?

Regards

Luca

Nov 16 '06 #1
1 2828
It sounds like you need a stripchart like:
http://jstripchart.sourceforge.net/
written in Python of course.

On Nov 16, 12:02 am, "luca72" <lucabe...@libero.itwrote:
....
>
with this i have the grap on the screen but i have to update every time
that i receive others data coming from two instruments (10 seconds),
how i can update the grap?

Regards

Luca
Nov 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by scott | last post: by
1 post views Thread by Kenneth Miller | last post: by
5 posts views Thread by diffuser78 | last post: by
reply views Thread by markacy | last post: by
4 posts views Thread by Bill Jackson | last post: by
4 posts views Thread by John Henry | last post: by
2 posts views Thread by Durand | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.