Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756d1d4 commit 78cdd4cCopy full SHA for 78cdd4c
1 file changed
examples/misc/coords_report.py
@@ -3,22 +3,23 @@
3
Coords Report
4
=============
5
6
-Override the default reporting of coords.
+Override the default reporting of coords as the mouse moves over the axes
7
+in an interactive backend.
8
"""
9
10
import matplotlib.pyplot as plt
11
import numpy as np
12
13
14
def millions(x):
- return '$%1.1fM' % (x*1e-6)
15
+ return '$%1.1fM' % (x * 1e-6)
16
17
18
# Fixing random state for reproducibility
19
np.random.seed(19680801)
20
21
x = np.random.rand(20)
-y = 1e7*np.random.rand(20)
22
+y = 1e7 * np.random.rand(20)
23
24
fig, ax = plt.subplots()
25
ax.fmt_ydata = millions
0 commit comments