By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,676 Members | 2,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,676 IT Pros & Developers. It's quick & easy.

matplotlib real time grap.

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.