Home » 
        Python » 
        Matplotlib MCQs
    
        
    Which is the correct code statement to draw a plot without a line?
    
    
    
	11. Which is the correct code statement to draw a plot without a line?
    
      - plt.plot(xpoints, ypoints)
- plt.plot(xpoints, ypoints, 0)
- plt.plot(xpoints, ypoints, False)
- plt.plot(xpoints, ypoints, 'o')
Answer: D) plt.plot(xpoints, ypoints, 'o')
    Explanation:
    You can draw a plot without lines by specifying the string notation parameter 'o', which means 'rings'. The correct code statement to draw a plot without a line is:
plt.plot(xpoints, ypoints, 'o')