Skip to content

Commit a8b036d

Browse files
committed
eliminate tight_layout warnings to avoid annoying
1 parent 1da1bac commit a8b036d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dabest/plotter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
4040
import seaborn as sns
4141
import matplotlib.pyplot as plt
4242
import pandas as pd
43+
import warnings
44+
warnings.filterwarnings('ignore', 'This figure includes Axes that are not compatible with tight_layout')
4345

4446
from .misc_tools import merge_two_dicts
4547
from .plot_tools import halfviolin, get_swarm_spans, gapped_lines,proportion_error_bar
@@ -344,7 +346,6 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
344346
contrast_axes = axx[1]
345347
rawdata_axes.set_frame_on(False)
346348
contrast_axes.set_frame_on(False)
347-
# fig.set_tight_layout(False)
348349

349350
redraw_axes_kwargs = {'colors' : ytick_color,
350351
'facecolors' : ytick_color,

0 commit comments

Comments
 (0)