April 2018
Beginner to intermediate
300 pages
7h 34m
English
There are dozens of available markers to denote data points. They are grouped into unfilled markers and the bolder filled_markers. Here are a few examples:
We can access the keys and names of all available marker shapes under mpl.lines.Line2D.markers. The following is a code snippet for an overview of all our marker shapes:
import matplotlib.pyplot as pltfrom matplotlib.lines import Line2Dfor i,marker in enumerate(Line2D.markers): plt.scatter(i%10,i,marker=marker,s=100) # plot each of the markers in size of 100plt.show()
Here is the graphical output of the markers:
Read now
Unlock full access