Skip to content

Commit 145b409

Browse files
committed
replace with np.arange()
1 parent d1efa25 commit 145b409

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/ticks_and_spines/tick_label_right.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
plt.rcParams['ytick.left'] = plt.rcParams['ytick.labelleft'] = False
1919

2020

21-
x = np.array([x for x in np.arange(10)])
21+
x = np.arange(10)
2222

2323
_, ax = plt.subplots(2, 1, sharex=True, figsize=(6, 6))
2424

examples/ticks_and_spines/tick_xlabel_top.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
plt.rcParams['xtick.bottom'] = plt.rcParams['xtick.labelbottom'] = False
2020
plt.rcParams['xtick.top'] = plt.rcParams['xtick.labeltop'] = True
2121

22-
x = np.array([x for x in np.arange(10)])
22+
x = np.arange(10)
2323

2424
plt.plot(x)
2525
plt.title('xlabel top')

0 commit comments

Comments
 (0)