We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6375549 commit eb05129Copy full SHA for eb05129
pandas/plotting/_core.py
@@ -468,12 +468,13 @@ def _adorn_subplots(self):
468
self.axes[0].set_title(self.title)
469
470
def _apply_axis_properties(self, axis, rot=None, fontsize=None):
471
- labels = axis.get_majorticklabels() + axis.get_minorticklabels()
472
- for label in labels:
473
- if rot is not None:
474
- label.set_rotation(rot)
475
- if fontsize is not None:
476
- label.set_fontsize(fontsize)
+ if rot is not None or fontsize is not None:
+ labels = axis.get_majorticklabels() + axis.get_minorticklabels()
+ for label in labels:
+ if rot is not None:
+ label.set_rotation(rot)
+ if fontsize is not None:
477
+ label.set_fontsize(fontsize)
478
479
@property
480
def legend_title(self):
0 commit comments