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

Skip to content

Commit fd6240a

Browse files
committed
fixed autoscale bug
svn path=/trunk/matplotlib/; revision=291
1 parent c85ea02 commit fd6240a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/date_demo1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@
5555
ax.xaxis.set_major_locator(years)
5656
ax.xaxis.set_major_formatter(yearsFmt)
5757
ax.xaxis.set_minor_locator(months)
58-
ax.xaxis.autoscale_view()
58+
ax.autoscale_view()
5959
grid(True)
6060
show()

examples/date_demo2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ax.xaxis.set_major_locator(months)
4141
ax.xaxis.set_major_formatter(monthsFmt)
4242
ax.xaxis.set_minor_locator(mondays)
43-
ax.xaxis.autoscale_view()
43+
ax.autoscale_view()
4444
#ax.xaxis.grid(False, 'major')
4545
#ax.xaxis.grid(True, 'minor')
4646

0 commit comments

Comments
 (0)