##// END OF EJS Templates
Updated spec file.
Updated spec file.

File last commit:

r18:a9eb4604e26a default
r102:1fe40426b7f2 socexplorer-0.6-3 0.6
Show More
SocExplorerPlot3.py
37 lines | 503 B | text/x-python | PythonLexer
#!/usr/bin/socexplorer -e
import numpy as np
freq1 = 30
freq2 = 300
time_step = 0.000001
t_ini = -500 * 1.0/(max(freq1,freq2))
t_fin = -1 * t_ini
time_vec = np.arange(t_ini, t_fin, time_step)
#input signal
input_sig1 = np.sin(2 * np.pi * freq1 * time_vec)
plot=PySocExplorer.SocExplorerPlot()
plot.setTitle("demo")
plot.setXaxisLabel("Time(s)")
plot.setYaxisLabel("Values")
Courbe1=plot.addGraph()
plot.setGraphData(Courbe1,time_vec.tolist(),input_sig1.tolist())
plot.rescaleAxis()