Skip to content

Commit 09118d2

Browse files
spenthilwesm
authored andcommitted
autofmt_xdate is a method of the figure, not axes.
1 parent d5e8b8c commit 09118d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/visualization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The ``plot`` method on Series and DataFrame is just a simple wrapper around
4444
@savefig series_plot_basic.png width=4.5in
4545
ts.plot()
4646
47-
If the index consists of dates, it calls ``gca().autofmt_xdate()`` to try to
47+
If the index consists of dates, it calls ``gcf().autofmt_xdate()`` to try to
4848
format the x-axis nicely as per above. The method takes a number of arguments
4949
for controlling the look of the plot:
5050

0 commit comments

Comments
 (0)