code: def format_date_labels(ax, rot):
      # mini version of autofmt_xdate
      try:
          for label in ax.get_xticklabels():
              label.set_ha("right")
              label.set_rotation(rot)
          fig = ax.get_figure()
          fig.subplots_adjust(bottom=0.2)
      except Exception:  # pragma: no cover
          pass
  
file_path: catboost/contrib/python/pandas/py2/pandas/plotting/_tools.py
imports: from __future__ import division
  from math import ceil
  import warnings
  import numpy
  from pandas.compat import range
  from pandas.core.dtypes.common import is_list_like
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
label_desc: Use image node_id 1 for calling a global function with example usage: format_date_labels(ax, rot) without return types