<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The web documentation for matplotlib.axes.Axes.sharex state that Axes.sharex(ax) "is equivalent to passing <span style="font-family:Monospace;">sharex=ax</span> when constructing the axes"</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I found it's not really true, at least in interactive mode.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">When we use add_axes(..., sharex=...), the Axis is shared and the xlims and ticks are also shared.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">If we use Axes.sharex=ax the xlims and xticks are not shared.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Maybe there's a purpose for the discrepancy, but I can't understand it.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Comments please!</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">PS: tested with mpl3.3.4 and python3.8</p>
</body>
</html>