English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Observe the output figure. Identify the coding for obtaining this output.

Advertisements
Advertisements

Question

Observe the output figure. Identify the coding for obtaining this output.

Options

  • import matplotlib.pyplot as plt
    plt.plot([1,2,3],[4,5,1])
    plt.show()

  • import matplotlib.pyplot as
    plt plt.plot([1,2],[4,5])
    plt.show()

  • import matplotlib.pyplot as plt
    plt.plot([2,3],[5,1])
    plt.show()

  • import matplotlib.pyplot as plt
    plt.plot([1,3],[4,1])
    plt.show()

MCQ
Advertisements

Solution

import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()

shaalaa.com
Special Plot Types
  Is there an error in this question or solution?
Chapter 16: Data visualization using pyplot: line chart, pie chart and bar chart - Evaluation [Page 331]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 16 Data visualization using pyplot: line chart, pie chart and bar chart
Evaluation | Q 6. | Page 331
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×