Created
February 27, 2018 00:27
-
-
Save salamantos/2a5049cd9d8dfa79079c62c1fae2ccae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def plot_laba(): | |
x = table_0.values[:, 0] | |
y = table_0.values[:, 3] | |
k = table_0.values[0, 3] | |
b = 0 | |
dx = np.zeros(len(table_0.values)) | |
dy = table_0.values[:, 5] | |
plt.figure(figsize=(15,6)) | |
plt.grid(linestyle='--') | |
plt.title('Зависимость $v$ от $n$', fontweight='bold') | |
plt.ylabel('$v, \quad Гц$') | |
plt.xlabel('$n$') | |
plt.scatter(x, y) | |
plt.plot(x, k * x + b) | |
plt.errorbar(x, y, xerr=dx, yerr=dy, fmt='o') | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment