Question:

In case of plots in Python, Marker "3" describes __________.

Show Hint

Matplotlib numeric markers for triangles are easy to memorize:
- 1 = tri_down, 2 = tri_up, 3 = tri_left, 4 = tri_right.
Just follow the counterclockwise rotation starting from down.
Updated On: Jun 11, 2026
  • tri_right
  • tri_left
  • tri_down
  • tri_up
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation




Step 1: Understanding the Question:

The question is about the marker styles in Matplotlib plots. Specifically, it asks what the string marker "3" represents in Matplotlib's plot styling.



Step 2: Key Formula or Approach:

Matplotlib has a list of pre-defined marker styles used to highlight individual data points in line plots and scatter plots.
The numerical characters 1, 2, 3, and 4 are used to specify triangular shapes facing different directions:
- 1 represents tri_down (triangle pointing downwards).
- 2 represents tri_up (triangle pointing upwards).
- 3 represents tri_left (triangle pointing to the left).
- 4 represents tri_right (triangle pointing to the right).



Step 3: Detailed Explanation:

When plotting a chart using Matplotlib, we can specify the marker style using the marker keyword argument.
For example: plt.plot(x, y, marker='3') will mark each data point with a left-pointing triangle (tri_left).
Similarly, marker='1' draws a downward-pointing triangle, marker='2' draws an upward-pointing triangle, and marker='4' draws a right-pointing triangle.
These are also referred to as tri-markers in Matplotlib documentation.
Hence, marker "3" represents tri_left.



Step 4: Final Answer:

The correct option is (B).
Was this answer helpful?
0
0