diff --git a/README.rst b/README.rst index c373f91..1341609 100644 --- a/README.rst +++ b/README.rst @@ -251,7 +251,9 @@ Plot user-generated samples plot_dkl(f, x, samples, prior_samples, ax_dkl, cache=cache, prior_cache=prior_cache) - ax_lines.get_shared_x_axes().join(ax_lines, ax_fgivenx, ax_samples) + + ax_lines.sharey(ax_fgivenx) + ax_fgivenx.sharey(ax_samples) fig.tight_layout() fig.savefig('plot.png') diff --git a/fgivenx/test/test_drivers.py b/fgivenx/test/test_drivers.py index 2845078..37ee0b7 100644 --- a/fgivenx/test/test_drivers.py +++ b/fgivenx/test/test_drivers.py @@ -134,5 +134,6 @@ def f(x, theta): plot_dkl(f, x, samples, prior_samples, ax_dkl, cache=cache, prior_cache=prior_cache) - ax_lines.get_shared_x_axes().join(ax_lines, ax_fgivenx, ax_samples) + ax_lines.sharey(ax_fgivenx) + ax_fgivenx.sharey(ax_samples) fig.set_size_inches(6, 6)