8000 MNT: use better internal names · matplotlib/matplotlib@dcdd8a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcdd8a1

Browse files
committed
MNT: use better internal names
1 parent 5c515e6 commit dcdd8a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/memleak.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def run_memleak_test(bench, iterations, report):
5757

5858
from matplotlib import pyplot as plt
5959
from matplotlib.ticker import EngFormatter
60-
formatter0 = EngFormatter(unit='B')
60+
bytes_formatter = EngFormatter(unit='B')
6161
fig, (ax1, ax2, ax3) = plt.subplots(3)
6262
for ax in (ax1, ax2, ax3):
6363
ax.axvline(starti, linestyle='--', color='k')
6464
ax1b = ax1.twinx()
65-
ax1b.yaxis.set_major_formatter(formatter0)
65+
ax1b.yaxis.set_major_formatter(bytes_formatter)
6666
ax1.plot(malloc_arr, 'C0')
6767
ax1b.plot(rss_arr, 'C1', label='rss')
6868
ax1b.plot(rss_peaks, 'C1', linestyle='--', label='rss max')

0 commit comments

Comments
 (0)
0