मराठी

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

Advertisements
Advertisements

प्रश्न

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

पर्याय

  • import matplotlib.pyplot as plt
    plt.plot([82, 25, 87, 14], [ 'A', 'B', 'C', 'D'])
    plt.show()

  • import matplotlib.pyplot as plt
    plt.plot ([82, 25 , 87, 14, 90], ['A', 'B', 'C','D', 'E'])
    plt.show()

  • import matplotlib.pyplot as plt
    plt.plot(['A', 'B', 'C', 'D', 'E'], [82, 25, 87, 14, 90])
    plt.show()

  • import matplotlib.pyplot as plt
    plt.plot([A:E], [82, 25, 87, 14, 90))
    plt. show()

MCQ
Advertisements

उत्तर

import matplotlib.pyplot as plt
plt.plot(['A', 'B', 'C', 'D', 'E'], [82, 25, 87, 14, 90])
plt.show()

shaalaa.com
Plotting Using Matplotlib
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×