@@ -143,22 +143,15 @@ def scatter_matrix(
143
143
144
144
>>> df = pd.DataFrame(np.random.randn(1000, 4), columns=['A','B','C','D'])
145
145
>>> pd.plotting.scatter_matrix(df, alpha=0.2)
146
- array([[<AxesSubplot: xlabel='A', ylabel='A'>,
147
- <AxesSubplot: xlabel='B', ylabel='A'>,
148
- <AxesSubplot: xlabel='C', ylabel='A'>,
149
- <AxesSubplot: xlabel='D', ylabel='A'>],
150
- [<AxesSubplot: xlabel='A', ylabel='B'>,
151
- <AxesSubplot: xlabel='B', ylabel='B'>,
152
- <AxesSubplot: xlabel='C', ylabel='B'>,
153
- <AxesSubplot: xlabel='D', ylabel='B'>],
154
- [<AxesSubplot: xlabel='A', ylabel='C'>,
155
- <AxesSubplot: xlabel='B', ylabel='C'>,
156
- <AxesSubplot: xlabel='C', ylabel='C'>,
157
- <AxesSubplot: xlabel='D', ylabel='C'>],
158
- [<AxesSubplot: xlabel='A', ylabel='D'>,
159
- <AxesSubplot: xlabel='B', ylabel='D'>,
160
- <AxesSubplot: xlabel='C', ylabel='D'>,
161
- <AxesSubplot: xlabel='D', ylabel='D'>]], dtype=object)
146
+ array([[<Axes: xlabel='A', ylabel='A'>, <Axes: xlabel='B', ylabel='A'>,
147
+ <Axes: xlabel='C', ylabel='A'>, <Axes: xlabel='D', ylabel='A'>],
148
+ [<Axes: xlabel='A', ylabel='B'>, <Axes: xlabel='B', ylabel='B'>,
149
+ <Axes: xlabel='C', ylabel='B'>, <Axes: xlabel='D', ylabel='B'>],
150
+ [<Axes: xlabel='A', ylabel='C'>, <Axes: xlabel='B', ylabel='C'>,
151
+ <Axes: xlabel='C', ylabel='C'>, <Axes: xlabel='D', ylabel='C'>],
152
+ [<Axes: xlabel='A', ylabel='D'>, <Axes: xlabel='B', ylabel='D'>,
153
+ <Axes: xlabel='C', ylabel='D'>, <Axes: xlabel='D', ylabel='D'>]],
154
+ dtype=object)
162
155
"""
163
156
plot_backend = _get_plot_backend ("matplotlib" )
164
157
return plot_backend .scatter_matrix (
@@ -509,7 +502,7 @@ def lag_plot(series: Series, lag: int = 1, ax: Axes | None = None, **kwds) -> Ax
509
502
:context: close-figs
510
503
511
504
>>> pd.plotting.lag_plot(s, lag=1)
512
- <AxesSubplot : xlabel='y(t)', ylabel='y(t + 1)'>
505
+ <Axes : xlabel='y(t)', ylabel='y(t + 1)'>
513
506
"""
514
507
plot_backend = _get_plot_backend ("matplotlib" )
515
508
return plot_backend .lag_plot (series = series , lag = lag , ax = ax , ** kwds )
0 commit comments