How to plot a line graph with marker in Matplotlib?
Line graph with Marker:
import matplotlib.pyplot as plt # Changing default values for parameters individually plt.rc('lines', linewidth=2, linestyle='-', marker='*') plt.rcParams['lines.markersize'] = 25 plt.rcParams['font.size'] = '10.0' #Plot a line graph plt.plot([10, 20, 30, 40, 50]) # Add labels and title plt.title("Interactive Plot") plt.xlabel("X-axis") plt.ylabel("Y-axis") plt.show()
The following is the output that will be obtained:
2018-10-26T22:38:37+05:30
2018-10-26T22:38:37+05:30
Amit Arora
Amit Arora
Python Programming Tutorial
Python
Practical Solution