x_volt_5 = m.gimmeTHATcolumn(d.anode_5,0) y_current_5 = m.gimmeTHATcolumn(d.anode_5,1) x_volt_langmuh = m.gimmeTHATcolumn(d.anode_langmuh,0) y_current_langmuh = m.gimmeTHATcolumn(d.anode_langmuh,1) print(x_volt_1) print(y_current_1) #plot.plot4(x_volt_langmuh,y_current_langmuh, "Anodenspannung in $V$","Anodenstrom in $\mu A$","../plots/anode1.pdf", None) plot.plot4(x_volt_5,y_current_5, "Anodenspannung in $V$","Anodenstrom in $ A$","../plots/anode1.pdf", None) plot.plot5(x_volt_4,y_current_4, "Anodenspannung in $V$","Anodenstrom in $ A$","../plots/anode1.pdf", None) plot.plot3(x_volt_3,y_current_3, "Anodenspannung in $V$","Anodenstrom in $ A$","../plots/anode1.pdf", None) plot.plot(x_volt_2,y_current_2, "Anodenspannung in $V$","Anodenstrom in $ A$","../plots/anode1.pdf", None) plot.plot2(x_volt_1,y_current_1, "Anodenspannung in $V$","Anodenstrom in $ A$","../plots/anode1.pdf", None) for i in range(5): plt.axhline(m.saturation_current[i], linewidth=0.2, color='c') plt.savefig('../plots/anode1.pdf') plt.clf() plt.clf() #plot.plot([0,5,9,12,15,22],m.q_gone_korr, "Teilchennummer","Korrigierte Ladung $q / C$","../plots/ladung2.pdf", None) plot.log_plot(x_volt_1,y_current_1, "Logarithmierte Anodenspannung $\ln(U)$","Logarithmierter Anodenstrom $\ln(\mu A)$","../plots/raum.pdf", None) x_flow = np.linspace(1,3,1000) plt.plot(x_flow, f.linearFit(x_flow, m.raumladung[0].nominal_value,m.raumladung[1].nominal_value), 'b-', label= "Linearer Fit")
import numpy as np from uncertainties.unumpy import uarray import data import helpers as hel import plot_helpers as plot import main as m import functions as f import matplotlib as mpl import matplotlib.pyplot as plt #plot.plot(range(len(m.q)),m.q, "Teilchennummer","Ladung","../plots/ladung.pdf", None) #plot.plot(range(len(m.q_korr)),m.q_korr, "Teilchennummer","Korrigierte Ladung in C","../plots/ladung2.pdf", None) plot.plot2(range(len(m.q_new_korr)),m.q_new_korr, "Teilchennummer","Korrigierte Ladung $q / C$","../plots/ladung2.pdf", None) plot.plot([0,5,9,12,15,22],m.q_gone_korr, "Teilchennummer","Korrigierte Ladung $q / C$","../plots/ladung2.pdf", None) x,y = plot.extract_error(m.q_korr) x2,y2 = plot.extract_error(m.q) x3,y3 = plot.extract_error(m.q_new) x4,y4 = plot.extract_error(m.q_new_korr) bla = range(39, 45) print(bla) #plt.plot([0,12,22],m.q_gone_korr, 'r.') plt.plot(np.linspace(0,0.1,len(x4)),x4,'m.') #plt.plot(range(len(x2)),x2, 'b.') #hahaha korrektur macht zero unterschied -.-