Skip to content

Commit 78cdd4c

Browse files
committed
DOC: Clarify Coords Report Example
- add remark that this only pertains to the interactive backend - PEP8 fixes
1 parent 756d1d4 commit 78cdd4c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/misc/coords_report.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
Coords Report
44
=============
55
6-
Override the default reporting of coords.
6+
Override the default reporting of coords as the mouse moves over the axes
7+
in an interactive backend.
78
"""
89

910
import matplotlib.pyplot as plt
1011
import numpy as np
1112

1213

1314
def millions(x):
14-
return '$%1.1fM' % (x*1e-6)
15+
return '$%1.1fM' % (x * 1e-6)
1516

1617

1718
# Fixing random state for reproducibility
1819
np.random.seed(19680801)
1920

2021
x = np.random.rand(20)
21-
y = 1e7*np.random.rand(20)
22+
y = 1e7 * np.random.rand(20)
2223

2324
fig, ax = plt.subplots()
2425
ax.fmt_ydata = millions

0 commit comments

Comments
 (0)