8000 revert xkcd.py · matplotlib/matplotlib@bc444fa · GitHub
[go: up one dir, main page]

Skip to content

Commit bc444fa

Browse files
committed
revert xkcd.py
1 parent a9d580e commit bc444fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/showcase/xkcd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# Based on "Stove Ownership" from XKCD by Randall Munroe
1515
# https://xkcd.com/418/
1616

17-
fig, ax = plt.subplots()
18-
ax.set_position((0.1, 0.2, 0.8, 0.7))
17+
fig = plt.figure()
18+
ax = fig.add_axes((0.1, 0.2, 0.8, 0.7))
1919
ax.spines['right'].set_color('none')
2020
ax.spines['top'].set_color('none')
2121
ax.set_xticks([])
@@ -44,8 +44,8 @@
4444
# Based on "The Data So Far" from XKCD by Randall Munroe
4545
# https://xkcd.com/373/
4646

47-
fig, ax = plt.subplots()
48-
ax.set_position((0.1, 0.2, 0.8, 0.7))
47+
fig = plt.figure()
48+
ax = fig.add_axes((0.1, 0.2, 0.8, 0.7))
4949
ax.bar([0, 1], [0, 100], 0.25)
5050
ax.spines['right'].set_color('none')
5151
ax.spines['top'].set_color('none')

0 commit comments

Comments
 (0)
0