From 9fdd995186653d8ec131b7cf132b459abe4d30f9 Mon Sep 17 00:00:00 2001 From: Olga Lyashevska Date: Sat, 20 Jun 2020 16:27:04 +0100 Subject: [PATCH 1/3] ENH:fixed layout --- pandas/plotting/_matplotlib/misc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/plotting/_matplotlib/misc.py b/pandas/plotting/_matplotlib/misc.py index 0cafcfed38a54..bb6530b0f6412 100644 --- a/pandas/plotting/_matplotlib/misc.py +++ b/pandas/plotting/_matplotlib/misc.py @@ -301,6 +301,7 @@ def bootstrap_plot(series, fig=None, size=50, samples=500, **kwds): for axis in axes: plt.setp(axis.get_xticklabels(), fontsize=8) plt.setp(axis.get_yticklabels(), fontsize=8) + plt.tight_layout() return fig From 14185c9ad8e4facced73b3db714461532ecebcaf Mon Sep 17 00:00:00 2001 From: Olga Lyashevska Date: Sat, 20 Jun 2020 17:11:09 +0100 Subject: [PATCH 2/3] updated whatsnew --- doc/source/whatsnew/v1.1.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index f6ad3a800283d..8495b7550658c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1006,6 +1006,7 @@ Plotting - Bug in :meth:`DataFrame.hist` where the order of ``column`` argument was ignored (:issue:`29235`) - Bug in :meth:`DataFrame.plot.scatter` that when adding multiple plots with different ``cmap``, colorbars alway use the first ``cmap`` (:issue:`33389`) - Bug in :meth:`DataFrame.plot.scatter` was adding a colorbar to the plot even if the argument `c` was assigned to a column containing color names (:issue:`34316`) +- Bug in :meth:`Series.bootstrap_plot` was cluttered axes and overlapping labels (:issue:`34905`) Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ From 49ac35c06f3563b8ba95ebaa19e171c6c8ed029f Mon Sep 17 00:00:00 2001 From: Olga Lyashevska Date: Sun, 21 Jun 2020 20:35:13 +0100 Subject: [PATCH 3/3] updated method reference --- doc/source/whatsnew/v1.1.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 8495b7550658c..90d90bc4cd445 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1006,7 +1006,7 @@ Plotting - Bug in :meth:`DataFrame.hist` where the order of ``column`` argument was ignored (:issue:`29235`) - Bug in :meth:`DataFrame.plot.scatter` that when adding multiple plots with different ``cmap``, colorbars alway use the first ``cmap`` (:issue:`33389`) - Bug in :meth:`DataFrame.plot.scatter` was adding a colorbar to the plot even if the argument `c` was assigned to a column containing color names (:issue:`34316`) -- Bug in :meth:`Series.bootstrap_plot` was cluttered axes and overlapping labels (:issue:`34905`) +- Bug in :meth:`pandas.plotting.bootstrap_plot` was causing cluttered axes and overlapping labels (:issue:`34905`) Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^