File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def _violinplot(
67
67
ax .tick_params (axis = 'both' , which = 'both' , labelsize = 8 )
68
68
if title :
69
69
ax .set_title (title )
70
+ plt .tight_layout ()
70
71
return figure
71
72
72
73
# Box and Violin plots for mean score, score differences, wins, and match
@@ -204,10 +205,8 @@ def _payoff_heatmap(
204
205
ax .tick_params (axis = 'both' , which = 'both' , labelsize = 16 )
205
206
if title :
206
207
ax .set_xlabel (title )
207
- # Make the colorbar match up with the plot
208
- divider = make_axes_locatable (plt .gca ())
209
- cax = divider .append_axes ("right" , "5%" , pad = "3%" )
210
- plt .colorbar (mat , cax = cax , ax = ax )
208
+ figure .colorbar (mat , ax = ax )
209
+ plt .tight_layout ()
211
210
return figure
212
211
213
212
def pdplot (
@@ -278,6 +277,7 @@ def stackplot(
278
277
if logscale :
279
278
ax .set_xscale ('log' )
280
279
280
+ plt .tight_layout ()
281
281
return figure
282
282
283
283
def save_all_plots (
You can’t perform that action at this time.
0 commit comments