Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
boxplot fontsize argument only works on x axis (and not on y axis) #15108
Comments
|
Thanks for the report. I think you're right that fontsize should apply to all the ticklabels. if kwds.get('fontsize') is not None:
ax.tick_params(axis='both', labelsize=fontsize)Not great that pandas is using fontsize, when it should be called labelsize, but oh well. And as you noticed, the |
TomAugspurger
added the
Visualization
label
Jan 11, 2017
TomAugspurger
added this to the
0.20.0
milestone
Jan 11, 2017
|
Thanks @TomAugspurger! Alright, I'll try to submit a PR soon. We should think about creating another issue to rename |
cbrnr commentedJan 11, 2017
Code Sample
Problem description
The fontsize is only applied to the x axis and not to the y axis tick labels (see figure).

Expected Output
IMO this argument should change the font size of both axes tick labels. Side note: I've tried to use the new plot API, but I couldn't get the output to match the one shown above using
df.plot.box(I couldn't figure out how to set the variable to plot in the first place - probably this only works on Series and not on DataFrames).Output of
pd.show_versions()