def _check_data(self, xp, rs):
xp_lines = xp.get_lines()<EOL>rs_lines = rs.get_lines()<EOL>def check_line(xpl, rsl):<EOL><INDENT>xpdata = xpl.get_xydata()<EOL>rsdata = rsl.get_xydata()<EOL>tm.assert_almost_equal(xpdata, rsdata)<EOL><DEDENT>assert len(xp_lines) == len(rs_lines)<EOL>[check_line(xpl, rsl) for xpl, rsl in zip(xp_lines, rs_lines)]<EOL>tm.close()<EOL>
Check each axes has identical lines

Parameters
----------
xp : matplotlib Axes object
rs : matplotlib Axes object