import numpy as np import matplotlib.pyplot as plt x=np.arange(-45, 45, 5) print(x) T=[20.169, 20.103, 20.048, 20.003, 19.963, 19.932, 19.914, 19.900, 19.890, 19.892, 19.900, 19.915, 19.945, 19.978, 20.010, 20.050, 20.100, 20.158] ## =10 * T plt.plot(x, T, marker='o') y=np.arange(40, -50, -5) print(y) T2=[20.209, 20.105, 20.025, 19.943, 19.882, 19.835, 19.800, 19.779, 19.769, 19.774, 19.792, 19.816, 19.857, 19.908, 19.968, 20.030, 20.109, 20.185] plt.plot(y, T2, marker='s', label='2') plt.grid() plt.xlim(30, 40) plt.legend() plt.show() # 31, 37 között: # 34-ben: t2= 20.086, t1=20.088, # 35-ben: t2= 20.107 t1=20.101 # 34.5 ben : t2= 20.107, t1= 20.102 # 33.5 ben: t2= 20.079 t1=20.077 # 33 ban: t2= 20.064, t1= 20.066 # 32.5: t2= 20.058, t1= 20.075 # 35.5: t2= 20.110 t1=20.083 X=[32.5, 33, 33.5, 34, 34.5, 35, 35.5] t1=[20.075, 20.066, 20.077, 20.088, 20.102, 20.101, 20.106] t2=[20.058, 20.064, 20.079, 20.086, 20.107, 20.107, 20.110] ## 35.5 t1= 20.106, t2= 20.110 ## 34.5: t1= 20.093 t2=20.093 ## 33.5 t1= 20.086 t2=20.073 ## 32.5 t2= 20.058 t1= 20.075 ## 33 t1= 20.080, t2= 20.067 ### 34: t1= 20.092, t2=20.086 t1=[20.075, 20.080, 20.086, 20.092,20.094, 20.103, 20.106] t2=[20.058, 20.067, 20.073, 20.086, 20.093, 20.102, 20.110] Y=[32.5, 33, 33.5, 34, 34.5, 35, 35.5] plt.plot(Y, t2, marker='o', label='2') plt.plot(Y, t1, marker='o') plt.legend() plt.show() #################### #hiba 35cm 5 ua: # t2: # súlypont: 40cm: 14.7 CM # 35: 14.3 # 30: 13.8 # 25: 13.5 # -2: 11.5 # -5: 10.6 # -10: 10.3 # -15: 9.6 # -20: 9.4 #-25: 8.8 #-30: 8.4 #-35: 8.0 # r=[14.7, 14.3, 13.8, 13.5, 11.5, 10.6, 10.3, 9.6, 9.4, 8.8, 8.4, 8.0] z=[40,35,30,25,-2,-5,-10,-15,-20,-25,-30,-35] plt.plot(z,r, marker='s') plt.show() # hiba, ismételgetés: # 35cm, (t2 ?) # 20.105, 20.107, 20.102, 20.105, 20.100