File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 63
63
'ipython_sphinxext.ipython_console_highlighting' ,
64
64
# lowercase didn't work
65
65
'IPython.sphinxext.ipython_console_highlighting' ,
66
+ 'matplotlib.sphinxext.plot_directive' ,
66
67
'sphinx.ext.intersphinx' ,
67
68
'sphinx.ext.coverage' ,
68
69
'sphinx.ext.mathjax' ,
85
86
if any (re .match ("\s*api\s*" , l ) for l in index_rst_lines ):
86
87
autosummary_generate = True
87
88
89
+ # matplotlib plot directive
90
+ plot_include_source = True
91
+ plot_formats = [("png" , 90 )]
92
+ plot_html_show_formats = False
93
+ plot_html_show_source_link = False
94
+ plot_pre_code = """import numpy as np
95
+ import pandas as pd"""
96
+
88
97
# Add any paths that contain templates here, relative to this directory.
89
98
templates_path = ['../_templates' ]
90
99
Original file line number Diff line number Diff line change @@ -2537,6 +2537,15 @@ def line(self, **kwds):
2537
2537
Returns
2538
2538
-------
2539
2539
axes : matplotlib.AxesSubplot or np.array of them
2540
+
2541
+ Examples
2542
+ --------
2543
+
2544
+ .. plot::
2545
+ :context: close-figs
2546
+
2547
+ >>> s = pd.Series([1, 3, 2])
2548
+ >>> s.plot.line()
2540
2549
"""
2541
2550
return self (kind = 'line' , ** kwds )
2542
2551
You can’t perform that action at this time.
0 commit comments