मराठी

How can we make the bar chart of the figure horizontal?

Advertisements
Advertisements

प्रश्न

How can we make the bar chart of the figure horizontal?

अति संक्षिप्त उत्तर
Advertisements

उत्तर

  • Change the function: Replace plt.bar() with plt.barh() in your code.
  • Swap the labels: Change plt.xlabel("Day") to plt.ylabel("Day") and change plt.ylabel("Sales in Rs") to plt.xlabel("Sales in Rs").
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 4: Plotting Data using Matplotlib - Intext Questions [पृष्ठ ११९]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
पाठ 4 Plotting Data using Matplotlib
Intext Questions | Q 3. | पृष्ठ ११९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×