Skip to content

Commit cf377d0

Browse files
committed
fixed slopegraph_kwargs
fixed a bug when using the `slopegraph_kwargs`. Also added documentation for the `slopegraph_kwargs`
1 parent 8535bce commit cf377d0

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

dabest/_classes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,12 @@ def plot(self, color_col=None,
12091209
pyplot.violinplot` command here, as a dict. If None, the following
12101210
keywords are passed to violinplot : {'widths':0.5, 'vert':True,
12111211
'showextrema':False, 'showmedians':False}.
1212+
slopegraph_kwargs : dict, default None
1213+
This will change the appearance of the lines used to join each pair
1214+
of observations when `show_pairs=True`. Pass any keyword arguments
1215+
accepted by matplotlib `plot()` function here, as a dict.
1216+
If None, the following keywords are
1217+
passed to plot() : {'linewidth':1, 'alpha':0.5}.
12121218
reflines_kwargs : dict, default None
12131219
This will change the appearance of the zero reference lines. Pass
12141220
any keyword arguments accepted by the matplotlib Axes `hlines`

dabest/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
130130
if plot_kwargs["slopegraph_kwargs"] is None:
131131
slopegraph_kwargs = default_slopegraph_kwargs
132132
else:
133-
slopegraph_kwargs = merge_two_dicts(slopegraph_kwargs,
133+
slopegraph_kwargs = merge_two_dicts(default_slopegraph_kwargs,
134134
plot_kwargs["slopegraph_kwargs"])
135135

136136

0 commit comments

Comments
 (0)