1.
import matplotli.pyplot as plt
import seaborn as sns
plt and sns are common abbreviations for Matplotlib and Seaborn respectively.
2.
The magic command %matplotlib inline allows to include graphs in a notebook
3.
import seaborn as sns
import matplotlib.pyplot as plt
import math
sns.set_theme(style="whitegrid")
X = [0.1*i for i in range(100) ]
Y = [math.sin(x) for x in X]
sns.lineplot(x=X, y=Y)
plt.show()
Comments
Leave a comment