On 2014/05/07 2:12 PM, Yuxiang Wang wrote:
> Dear all,
>
> I was wondering that, is there a method like axes.set_sharex(ax0) so I
> can directly set the sharex and sharey properties of an axes object?
> It seems that the only way to do this is at time of creation via
> fig.add_subplots(1, 2, 2, sharex=ax0). If I have already created the
> axes using the plt.subplots() method, this wouldn't work.
>
> Could anyone please help make sure that I am understanding this
> question correctly?
>
This is correct. If you use plt.subplots with sharex and/or sharey, the
sharing applies to all subplots.
Eric
> Thank you!
>
> Shawn
|