@@ -2005,7 +2005,7 @@ def plot_series(data, kind='line', ax=None, # Series unique
2005
2005
ax : object of class matplotlib.axes.Axes, optional
2006
2006
The matplotlib axes to be used by boxplot.
2007
2007
fontsize : float or str
2008
- Tick label font size in points or as a string (e.g., ‘ large’ ).
2008
+ Tick label font size in points or as a string (e.g., ` large` ).
2009
2009
rot : int or float, default 0
2010
2010
The rotation angle of labels (in degrees)
2011
2011
with respect to the screen coordinate sytem.
@@ -2111,59 +2111,16 @@ def plot_series(data, kind='line', ax=None, # Series unique
2111
2111
2112
2112
>>> boxplot = df.boxplot(grid=False, rot=45, fontsize=15)
2113
2113
2114
-
2115
2114
The parameter ``return_type`` can be used to select the type of element
2116
2115
returned by `boxplot`. When ``return_type='axes'`` is selected,
2117
2116
the matplotlib axes on which the boxplot is drawn are returned:
2118
2117
2119
2118
>>> df.boxplot(column=['Col1','Col2'], return_type='axes')
2120
2119
<matplotlib.axes._subplots.AxesSubplot object at ...>
2121
2120
2122
- If selecting ``return_type='dict'`` a dictionary containing the
2123
- lines is returned:
2124
-
2125
- >>> df.boxplot(column=['Col1','Col2'], return_type='dict')
2126
- {'boxes': [<matplotlib.lines.Line2D at ...>,
2127
- <matplotlib.lines.Line2D at ...>],
2128
- 'caps': [<matplotlib.lines.Line2D at ...>,
2129
- <matplotlib.lines.Line2D at ...>,
2130
- <matplotlib.lines.Line2D at ...>,
2131
- <matplotlib.lines.Line2D at ...>],
2132
- 'fliers': [<matplotlib.lines.Line2D at ...>,
2133
- <matplotlib.lines.Line2D at ...>],
2134
- 'means': [],
2135
- 'medians': [<matplotlib.lines.Line2D at ...>,
2136
- <matplotlib.lines.Line2D at ...>],
2137
- 'whiskers': [<matplotlib.lines.Line2D at ...>,
2138
- <matplotlib.lines.Line2D at ...>,
2139
- <matplotlib.lines.Line2D at ...>,
2140
- <matplotlib.lines.Line2D at ...>]}
2141
-
2142
- If selecting ``return_type='both'``, a namedtuple with matplotlib axes and
2143
- Line objets is returned:
2144
-
2145
- >>> df.boxplot(column=['Col1','Col2'], return_type='both')
2146
- Boxplot(ax=<matplotlib.axes._subplots.AxesSubplot object
2147
- at 0x115821128>, lines={'whiskers':
2148
- [<matplotlib.lines.Line2D object at ...>,
2149
- <matplotlib.lines.Line2D object at ...>,
2150
- <matplotlib.lines.Line2D object at ...>,
2151
- <matplotlib.lines.Line2D object at ...>],
2152
- 'caps': [<matplotlib.lines.Line2D object at ...>,
2153
- <matplotlib.lines.Line2D object at ...>,
2154
- <matplotlib.lines.Line2D object at ...>,
2155
- <matplotlib.lines.Line2D object at ...>],
2156
- 'boxes': [<matplotlib.lines.Line2D object at ...>,
2157
- <matplotlib.lines.Line2D object at ...>],
2158
- 'medians': [<matplotlib.lines.Line2D object at ...>,
2159
- <matplotlib.lines.Line2D object at ...>],
2160
- 'fliers': [<matplotlib.lines.Line2D object at ...>,
2161
- <matplotlib.lines.Line2D object at ...>], 'means': []})
2162
-
2163
2121
When grouping with ``by``, a Series mapping columns to ``return_type``
2164
2122
is returned:
2165
2123
2166
-
2167
2124
>>> df.boxplot(column=['Col1','Col2'], by='X', return_type='axes')
2168
2125
Col1 AxesSubplot(0.1,0.15;0.363636x0.75)
2169
2126
Col2 AxesSubplot(0.536364,0.15;0.363636x0.75)
@@ -2176,9 +2133,9 @@ def plot_series(data, kind='line', ax=None, # Series unique
2176
2133
array([<matplotlib.axes._subplots.AxesSubplot object at ...>,
2177
2134
<matplotlib.axes._subplots.AxesSubplot object at ...>],
2178
2135
dtype=object)
2179
-
2180
2136
"""
2181
2137
2138
+
2182
2139
@Appender (_shared_docs ['boxplot' ] % _shared_doc_kwargs )
2183
2140
def boxplot (data , column = None , by = None , ax = None , fontsize = None ,
2184
2141
rot = 0 , grid = True , figsize = None , layout = None , return_type = None ,
0 commit comments