Scatter Plot
Title
Question
How the change the shape of markers in scatter plot.
Python-3.4.3 Other-Types-Of-Plots 04-05 min 10-20 sec
Answers:
You can change the shape and the size of the marker by adding the marker = and the markersize = keyword arguments in the plot function;
plt.plot([1,2,3], marker='+', markersize=4.2)
See<a href="https://matplotlib.org/3.1.1/api/markers_api.html" style="background-color: rgb(255, 255, 255);">https://matplotlib.org/3.1.1/api/markers_api.html</a> for all possible shapes
Login to add comment