Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3907ecd

Browse files
committed
made gridlines, ticklines and ticklabels code cleaner
1 parent f8d7616 commit 3907ecd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

examples/pylab_examples/axes_props.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@
1111
ax.plot(t, s)
1212
ax.grid(True)
1313

14-
ticklines = ax.get_xticklines()
15-
ticklines.extend(ax.get_yticklines())
16-
gridlines = ax.get_xgridlines()
17-
gridlines.extend(ax.get_ygridlines())
18-
ticklabels = ax.get_xticklabels()
19-
ticklabels.extend(ax.get_yticklabels())
14+
ticklines = ax.get_xticklines() + ax.get_yticklines()
15+
gridlines = ax.get_xgridlines() + ax.get_ygridlines()
16+
ticklabels = ax.get_xticklabels() + ax.get_yticklabels()
2017

2118
for line in ticklines:
2219
line.set_linewidth(3)

0 commit comments

Comments
 (0)