Which argument keyword can be used to emphasize each point with a specified marker in plotting?

12. Which argument keyword can be used to emphasize each point with a specified marker in plotting?

  1. marker_points
  2. marker
  3. ring
  4. types

Answer: B) marker

Explanation:

When you want to highlight each point with a specified marker, you can use the keyword argument marker with the specified value. Consider the below code statement that can be used to highlight the points with rings –

plt.plot(ypoints, marker = 'o')

Here is the list of the values to highlight the point with a special marker: Reference

Marker Description
'o' Circle
'*' Star
'.' Point
',' Pixel
'x' X
'X' X (filled)
'+' Plus
'P' Plus (filled)
's' Square
'D' Diamond
'd' Diamond (thin)
'p' Pentagon
'H' Hexagon
'h' Hexagon
'v' Triangle Down
'^' Triangle Up
'<' Triangle Left
'>' Triangle Right
'1' Tri Down
'2' Tri Up
'3' Tri Left
'4' Tri Right
'|' Vline
'_' Hline

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.