Search code examples
pythonpandasdataframeplothistogram

How to change the figure size of Dataframe.hist for pandas 0.11.0


I am trying to make histograms for a dataframe with pandas 0.11.0 but the figure size is too small. How to change it?

In pandas 0.19.0, hist has the figsize parameter.


Solution

  • Let's try something like this:

       fig = plt.figure(figsize = (15,20))
       ax = fig.gca()
       df.hist(ax = ax)