8000 Update examples/ticks_and_spines/centered_ticklabels.py · matplotlib/matplotlib@4dd06fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 4dd06fb

Browse files
QuLogictimhoffm
andauthored
Update examples/ticks_and_spines/centered_ticklabels.py
Co-Authored-By: timhoffm <2836374+timhoffm@users.noreply.github.com>
1 parent ee8d3e7 commit 4dd06fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/ticks_and_spines/centered_ticklabels.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
ax.plot(date, r.adj_close)
3636

3737
ax.xaxis.set_major_locator(dates.MonthLocator())
38+
# 16 is a slight approximation since months differ in number of days.
3839
ax.xaxis.set_minor_locator(dates.MonthLocator(bymonthday=16))
3940

4041
ax.xaxis.set_major_formatter(ticker.NullFormatter())

0 commit comments

Comments
 (0)
0