Python MatplotlibLesson 60Free preview
Matplotlib Markers
This lesson is part of Python · All levels
Summary
A marker is a small symbol at each data point in a line graph, such as a circle 'o', a star '*', or a box 's'. The size of the marker is set by the parameter ms (markersize), the color of the contents by mfc, and the color of the edge line by mec. Marker also becomes a key element in scatter graphs, where each symbol represents one observation. Marker adjustments help to keep data dots visible, especially when the lines are thin or the data is very large.
Key points
- Marker marks the position of each data point on the graph
- The parameter marker selects the shape of the symbol, for example 'o', '*', or 's'
- Ms sets the size, mfc sets the color of the content, and mec sets the color of the edges
- Marker is also important to scatter plot for each observation
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.