Skip to content

Commit 526f404

Browse files
authored
BUG: plotting layout patch (#34905)
1 parent e4a553a commit 526f404

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

doc/source/whatsnew/v1.1.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ Plotting
10281028
- Bug in :meth:`DataFrame.hist` where the order of ``column`` argument was ignored (:issue:`29235`)
10291029
- Bug in :meth:`DataFrame.plot.scatter` that when adding multiple plots with different ``cmap``, colorbars alway use the first ``cmap`` (:issue:`33389`)
10301030
- 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`)
1031+
- Bug in :meth:`pandas.plotting.bootstrap_plot` was causing cluttered axes and overlapping labels (:issue:`34905`)
10311032

10321033
Groupby/resample/rolling
10331034
^^^^^^^^^^^^^^^^^^^^^^^^

pandas/plotting/_matplotlib/misc.py

+1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ def bootstrap_plot(series, fig=None, size=50, samples=500, **kwds):
301301
for axis in axes:
302302
plt.setp(axis.get_xticklabels(), fontsize=8)
303303
plt.setp(axis.get_yticklabels(), fontsize=8)
304+
plt.tight_layout()
304305
return fig
305306

306307

0 commit comments

Comments
 (0)