Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d690448

Browse files
committed
Minor moved example fixes
1 parent b045455 commit d690448

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/subplots_axes_and_figures/axes_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# create some data to use for the plot
1616
dt = 0.001
1717
t = np.arange(0.0, 10.0, dt)
18-
r = np.exp(-t[:1000] / 0.05) # impulse response
18+
r = np.exp(-t[:1000] / 0.05) # impulse response
1919
x = np.random.randn(len(t))
2020
s = np.convolve(x, r)[:len(x)] * dt # colored noise
2121

examples/subplots_axes_and_figures/axhspan_demo.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
============
3-
Axhspan Demo
3+
axhspan Demo
44
============
55
66
Create lines or rectangles that span the axes in either the horizontal or
@@ -22,12 +22,10 @@
2222
# Draw a default vline at x=1 that spans the yrange
2323
plt.axvline(x=1)
2424

25-
# Draw a thick blue vline at x=0 that spans the upper quadrant of
26-
# the yrange
25+
# Draw a thick blue vline at x=0 that spans the upper quadrant of the yrange
2726
plt.axvline(x=0, ymin=0.75, linewidth=8, color='#1f77b4')
2827

29-
# Draw a default hline at y=.5 that spans the middle half of
30-
# the axes
28+
# Draw a default hline at y=.5 that spans the middle half of the axes
3129
plt.axhline(y=.5, xmin=0.25, xmax=0.75)
3230

3331
plt.axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)

examples/text_labels_and_annotations/fancyarrow_demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def to_texstring(s):
3737

3838
ax.annotate(to_texstring(stylename), (x, y),
3939
(x - 1.2, y),
40-
# xycoords="figure fraction", textcoords="figure fraction",
4140
ha="right", va="center",
4241
size=fontsize,
4342
arrowprops=dict(arrowstyle=stylename,

0 commit comments

Comments
 (0)