popravil prikaz, log skala

master
Andrej 2021-02-17 10:29:02 +01:00
parent 7c82e3bc11
commit df8767b8a2
1 changed files with 3 additions and 1 deletions

View File

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