Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Barplots
#2
Call plt.show() and it seems to give what you want:
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt


ig, axes = plt.subplots(2,1)
data = pd.Series(np.random.rand(16), index=list('abcdefghijklmnop'))
data.plot.bar(ax=axes[0], color='k', alpha=0.7)
data.plot.barh(ax=axes[1], color='k', alpha=0.7)

plt.show()
   
Reply


Messages In This Thread
Barplots - by Jack2 - Oct-03-2018, 08:33 PM
RE: Barplots - by Mekire - Oct-04-2018, 11:15 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020