Skip to content

Commit c072e3a

Browse files
authored
Merge pull request matplotlib#21745 from StefRe/patch-1
DOC: Clarify Coords Report Example
2 parents ad4633f + 78cdd4c commit c072e3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/misc/coords_report.py

+4-3
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)