हिंदी

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
    Months = ['Dec', 'Jan', 'Feb', 'Mar']
    Attendance = [70, 90, 75, 95]
    plt.bar(Months, Attendance)
    plt.show()

  • import matplotlib.pyplot as plt
    Months = ['Dec', 'Jan', 'Feb', ' Mar']
    Attendance = [70, 90, 75, 95]
    plt.bar(Attendance, Months)
    plt.show()

  • import matplotlib.pyplot as plt
    Months = ['Dec', 'Jan', 'Feb', 'Mar']
    Attendance = [70, 90, 75, 95]
    plt.bargraph (Months, Attendance)
    plt.show()

  • import matplotlib.pyplot as plt
    Months = ['Dec', 'Jan', 'Feb', 'Mar']
    Attendance = [70, 90, 75, 95]
    plt.barplot (Months, Attendance)
    plt.show()

MCQ
Advertisements

उत्तर

import matplotlib.pyplot as plt
Months = ['Dec', 'Jan', 'Feb', 'Mar']
Attendance = [70, 90, 75, 95]
plt.bar(Months, Attendance)
plt.show()

shaalaa.com
Plotting Using Matplotlib
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×