diff --git a/galleries/examples/subplots_axes_and_figures/axhspan_demo.py b/galleries/examples/subplots_axes_and_figures/axhspan_demo.py index 788030fcc5f3..5544618016d6 100644 --- a/galleries/examples/subplots_axes_and_figures/axhspan_demo.py +++ b/galleries/examples/subplots_axes_and_figures/axhspan_demo.py @@ -17,7 +17,7 @@ s = 2.9 * np.convolve(np.random.randn(500), np.ones(30) / 30, mode='valid') ax1.plot(s) ax1.axhspan(-1, 1, alpha=0.1) -ax1.set_ylim(-1.5, 1.5) +ax1.set(ylim=(-1.5, 1.5), title="axhspan") mu = 8 @@ -29,6 +29,7 @@ ax2.axvspan(mu+sigma, mu+2*sigma, color='0.95') ax2.axvline(mu, color='darkgrey', linestyle='--') ax2.plot(x, y) +ax2.set(title="axvspan") plt.show()