def _check_has_errorbars(self, axes, xerr=<NUM_LIT:0>, yerr=<NUM_LIT:0>):
axes = self._flatten_visible(axes)<EOL>for ax in axes:<EOL><INDENT>containers = ax.containers<EOL>xerr_count = <NUM_LIT:0><EOL>yerr_count = <NUM_LIT:0><EOL>for c in containers:<EOL><INDENT>has_xerr = getattr(c, '<STR_LIT>', False)<EOL>has_yerr = getattr(c, '<STR_LIT>', False)<EOL>if has_xerr:<EOL><INDENT>xerr_count += <NUM_LIT:1><EOL><DEDENT>if has_yerr:<EOL><INDENT>yerr_count += <NUM_LIT:1><EOL><DEDENT><DEDENT>assert xerr == xerr_count<EOL>assert yerr == yerr_count<EOL><DEDENT>
Check axes has expected number of errorbars

Parameters
----------
axes : matplotlib Axes object, or its list-like
xerr : number
    expected number of x errorbar
yerr : number
    expected number of y errorbar