8000 FIX: bad plotting · matplotlib/matplotlib@112d938 · GitHub
[go: up one dir, main page]

Skip to content

Commit 112d938

Browse files
committed
FIX: bad plotting
1 parent 37d1197 commit 112d938

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/users/explain/api_interfaces.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ Most `~.axes.Axes` methods allow yet another API addressing by passing a
272272

273273
import matplotlib.pyplot as plt
274274

275-
data = {'x1': [0, 1, 2, 3], 'y1': [0, 0.2, 0.4, 0.1]}
275+
data = {'xdat': [0, 1, 2, 3], 'ydat': [0, 0.2, 0.4, 0.1]}
276276
fig, ax = plt.subplots()
277-
ax.plot(x='x1', y='y1', data=data)
277+
ax.plot('xdat', 'ydat', data=data)
278+
278279

279280
Appendix: "pylab" interface
280281
---------------------------

0 commit comments

Comments
 (0)
0