popravil prikaz, log skala
parent
7c82e3bc11
commit
df8767b8a2
|
@ -48,8 +48,9 @@ f=fskala[4:-1]
|
||||||
initsum = spekter(fs,pts,avg,fskala)
|
initsum = spekter(fs,pts,avg,fskala)
|
||||||
fig,ax = plt.subplots()
|
fig,ax = plt.subplots()
|
||||||
raw,pn, = ax.plot(f,initsum,f,initsum)
|
raw,pn, = ax.plot(f,initsum,f,initsum)
|
||||||
ax.set_xlim(0, 100000)
|
ax.set_xlim(100, 100000)
|
||||||
ax.set_ylim(-130,-30)
|
ax.set_ylim(-130,-30)
|
||||||
|
plt.xscale('log')
|
||||||
ax.grid(True)
|
ax.grid(True)
|
||||||
|
|
||||||
def meritev():
|
def meritev():
|
||||||
|
@ -63,4 +64,5 @@ def meritev():
|
||||||
return raw,pn
|
return raw,pn
|
||||||
|
|
||||||
ani = animation.FuncAnimation(fig,meritev,interval=50)
|
ani = animation.FuncAnimation(fig,meritev,interval=50)
|
||||||
|
plt.show()
|
||||||
print('*** Konec ***') #pritisk tipke na tipkovnici
|
print('*** Konec ***') #pritisk tipke na tipkovnici
|
||||||
|
|
Loading…
Reference in New Issue