8000 DOC: realign continued lines · matplotlib/matplotlib@f8b02f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8b02f6

Browse files
committed
DOC: realign continued lines
1 parent 5a7e67a commit f8b02f6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/lines_bars_and_markers/barh_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
performance = 3 + 10 * np.random.rand(len(people))
1515
error = np.random.rand(len(people))
1616

17-
ax.barh(y_pos, performance, xerr=error, align='center', color='green', ecolor='black')
17+
ax.barh(y_pos, performance, xerr=error, align='center',
18+
color='green', ecolor='black')
1819
ax.set_yticks(y_pos, people)
1920
ax.set_xlabel('Performance')
2021
ax.set_title('How fast do you want to go today?')

examples/lines_bars_and_markers/line_demo_dash_control.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
dashes = [10, 5, 100, 5] # 10 points on, 5 off, 100 on, 5 off
1313

1414
fig, ax = plt.subplots()
15-
line1, = ax.plot(x, np.sin(x), '--', linewidth=2, label='Dashes set retroactively')
15+
line1, = ax.plot(x, np.sin(x), '--', linewidth=2,
16+
label='Dashes set retroactively')
1617
line1.set_dashes(dashes)
1718

18-
line2, = ax.plot(x, -1 * np.sin(x), dashes=[30, 5, 10, 5], label='Dashes set proactively')
19+
line2, = ax.plot(x, -1 * np.sin(x), dashes=[30, 5, 10, 5],
20+
label='Dashes set proactively')
1921

2022
plt.show()

examples/lines_bars_and_markers/scatter_with_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
x, y = rand(2, n)
1717
scale = 200.0 * rand(n)
1818
ax.scatter(x, y, c=color, s=scale, label=color,
19-
alpha=0.3, edgecolors='none')
19+
alpha=0.3, edgecolors='none')
2020

2121
ax.legend()
2222
ax.grid(True)

0 commit comments

Comments
 (0)
0