Files
Lugovtsov/3.3.4-semiconductor-hall-effect/processing.ipynb
T
2023-10-07 19:37:34 +03:00

196 KiB

In [23]:
# %load ../processing_tools.py
import numpy as np
from scipy.optimize import curve_fit
import pandas as pd

import matplotlib.pyplot as plt
import matplotlib
import scienceplots

plt.style.use(['science', 'russian-font'])

matplotlib.rcParams.update({
    'figure.figsize': [6, 4],
    'savefig.facecolor': 'white',
    'figure.dpi': 150.0,
    'font.size': 12.0,
})
In [24]:
I_names = np.array([13, 24, 35, 46, 57, 68, 79, 90, 101])
I_values = I_names * 1.5 / 155# ток в мА
In [25]:
colors = ['tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple', 'tab:brown', 'tab:pink', 'tab:gray', 'tab:olive', 'tab:cyan']

График зависимости индукции от силы тока в обмотках магнита B = f(I_\text{М})

In [26]:
df = pd.read_csv(rf'data/induction_on_amperage.csv')

B = np.array(df['Ind[mT]'])
I_m = np.array(df['I[mA]'])
In [27]:
plt.errorbar(I_m, B, xerr=5+0.003*I_m, yerr=0.5+0.003*B, lw=1, ls='', marker='.', markersize=8, label=r"$B = f(I_\text{М})$", ds='default')
    
plt.xlabel(r"$I_\text{М}$, мА")
plt.ylabel(r"$B$, мТл")

plt.legend()
plt.savefig(rf"images/BonI.png")
plt.show()