Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d37d7a commit fe1043eCopy full SHA for fe1043e
1 file changed
galleries/examples/subplots_axes_and_figures/axhspan_demo.py
@@ -17,7 +17,7 @@
17
s = 2.9 * np.convolve(np.random.randn(500), np.ones(30) / 30, mode='valid')
18
ax1.plot(s)
19
ax1.axhspan(-1, 1, alpha=0.1)
20
-ax1.set_ylim(-1.5, 1.5)
+ax1.set(ylim = (-1.5, 1.5), title = "axhspan")
21
22
23
mu = 8
@@ -29,6 +29,7 @@
29
ax2.axvspan(mu+sigma, mu+2*sigma, color='0.95')
30
ax2.axvline(mu, color='darkgrey', linestyle='--')
31
ax2.plot(x, y)
32
+ax2.set(title = "axvspan")
33
34
plt.show()
35
0 commit comments