Line Plot
Line plots are very likely to Scatter plots. The main difference in line plots is that the domain of the x-axis will be continuous. Usually, line plots are best to see any kind of function. Also, we can easily detect the trend (upward or downward) in line plots.
Moreover, if you plot multiple functions in the same line plot, you can compare them pretty easily. In later lessons, we will use line plots to see the loss functions, accuracy, etc. with respect to epochs or iterations.
Let us create the same line plot in both matplotlib and plotly.
PYTHON
1x = np.arange(100)
2plt.plot(x, np.sin(x)) # matplotlib.pyplot
3px.line(x=x, y=np.sin(x)) # plotly.express
