def _post_plot_logic_common(self, ax, data):
def get_label(i):<EOL><INDENT>try:<EOL><INDENT>return pprint_thing(data.index[i])<EOL><DEDENT>except Exception:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT><DEDENT>if self.orientation == '<STR_LIT>' or self.orientation is None:<EOL><INDENT>if self._need_to_set_index:<EOL><INDENT>xticklabels = [get_label(x) for x in ax.get_xticks()]<EOL>ax.set_xticklabels(xticklabels)<EOL><DEDENT>self._apply_axis_properties(ax.xaxis, rot=self.rot,<EOL>fontsize=self.fontsize)<EOL>self._apply_axis_properties(ax.yaxis, fontsize=self.fontsize)<EOL>if hasattr(ax, '<STR_LIT>'):<EOL><INDENT>self._apply_axis_properties(ax.right_ax.yaxis,<EOL>fontsize=self.fontsize)<EOL><DEDENT><DEDENT>elif self.orientation == '<STR_LIT>':<EOL><INDENT>if self._need_to_set_index:<EOL><INDENT>yticklabels = [get_label(y) for y in ax.get_yticks()]<EOL>ax.set_yticklabels(yticklabels)<EOL><DEDENT>self._apply_axis_properties(ax.yaxis, rot=self.rot,<EOL>fontsize=self.fontsize)<EOL>self._apply_axis_properties(ax.xaxis, fontsize=self.fontsize)<EOL>if hasattr(ax, '<STR_LIT>'):<EOL><INDENT>self._apply_axis_properties(ax.right_ax.yaxis,<EOL>fontsize=self.fontsize)<EOL><DEDENT><DEDENT>else:  <EOL><INDENT>raise ValueError<EOL><DEDENT>
Common post process for each axes