Skip to content

Instantly share code, notes, and snippets.

@salamantos
Created February 27, 2018 00:27
Show Gist options
  • Save salamantos/2a5049cd9d8dfa79079c62c1fae2ccae to your computer and use it in GitHub Desktop.
Save salamantos/2a5049cd9d8dfa79079c62c1fae2ccae to your computer and use it in GitHub Desktop.
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