def _apply_axis_properties(self, axis, rot=None, fontsize=None):
if rot is not None or fontsize is not None:<EOL><INDENT>labels = axis.get_majorticklabels() + axis.get_minorticklabels()<EOL>for label in labels:<EOL><INDENT>if rot is not None:<EOL><INDENT>label.set_rotation(rot)<EOL><DEDENT>if fontsize is not None:<EOL><INDENT>label.set_fontsize(fontsize)<EOL><DEDENT><DEDENT><DEDENT>
Tick creation within matplotlib is reasonably expensive and is
            internally deferred until accessed as Ticks are created/destroyed
            multiple times per draw. It's therefore beneficial for us to avoid
            accessing unless we will act on the Tick.