I am plotting multiple distributions via the 'col' parameter and trying to change the fontsize and rotation for xticks but it will only take effect on the last subplot. How do I make it so that it changes for both subplots?
Asked
Active
Viewed 56 times
1 Answers
2
You can set the tick_params
for all axes with:
g.tick_params(axis='x', labelsize=5)
Or iterate over the Axes in your FacetGrid object g
:
for ax in g.axes.flatten():
ax.tick_params(axis='x', labelsize=5)

Tranbi
- 11,407
- 6
- 16
- 33
-
labelsize should be with lowercase "L". Other than that both proposals work – mrLimpio Mar 09 '23 at 12:44
-
Thanks for noticing! I just fixed it. – Tranbi Mar 09 '23 at 12:46