Computational Physics Lecture 4, Introduction to Matplotlib

preview_player
Показать описание
In this lecture, we learn how to make basic plots using the matplotlib library.

This video was created to accompany the course "Computational Physics (PHYS 270)" taught in the spring of 2017 at Nazarbayev University.
Рекомендации по теме
Комментарии
Автор

Awesome I'm learning physics, computer science and maths during covid-lockdown!! This is awesome!!
Thank you Prof. Ernazar

farisraza
Автор

you are wonderful, LOVE YOU MASTER...

sharifhasan
Автор

Thank you Sir for this tutorial on youtube.. Thank you very much..

dibakardutta
Автор

Label does not appear in my figure, when I run this code. Others things work perfectly fine, why ?
import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np

x = np.arange(0, 20, 0.1)
y = np.cos(x)
y1 =np.exp(-x/10)*np.cos(x)
plt.plot(x, y, label = "cos function", linewidth = 10)
plt.plot(x, y1, label ="oscillation")
plt.xlabel('x axis')
plt.ylabel('y axis')
plt.savefig('test1.png')
plt.show

vishalvashistha
welcome to shbcf.ru