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.
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.
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.
Let's try something like this:
fig = plt.figure(figsize = (15,20)) ax = fig.gca() df.hist(ax = ax)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With