Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to Increase the figure size of Dataframe.hist for pandas 0.11.0

Tags:

I am trying to make histograms for all columns of a dataframe through pandas 0.11.0 but the figure size is very small and hence the histograms are coming even smaller. We have the figsize property in 0.19.0 but how can we achieve the same in 0.11.0.

like image 241
AbhiGupta Avatar asked Apr 13 '17 12:04

AbhiGupta


People also ask

How do I change the size of a figure in pandas plot?

The size of a plot can be modified by passing required dimensions as a tuple to the figsize parameter of the plot() method. it is used to determine the size of a figure object. Where dimensions should be given in inches.

How do you plot a histogram in Python pandas?

In order to plot a histogram using pandas, chain the . hist() function to the dataframe. This will return the histogram for each numeric column in the pandas dataframe.


1 Answers

Let's try something like this:

   fig = plt.figure(figsize = (15,20))    ax = fig.gca()    df.hist(ax = ax) 
like image 200
Scott Boston Avatar answered Sep 19 '22 20:09

Scott Boston