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