|
1367 | 1367 | " # Jitter Kwargs \n", |
1368 | 1368 | " # With help from GitHub user: devMJBL\n", |
1369 | 1369 | " jitter = slopegraph_kwargs.pop(\"jitter\")\n", |
1370 | | - " if jitter >= 1:\n", |
| 1370 | + " if jitter > 1:\n", |
1371 | 1371 | " err0 = \"Jitter value is too high. Defaulting to 1.\"\n", |
1372 | 1372 | " warnings.warn(err0)\n", |
1373 | 1373 | " jitter = 1\n", |
|
1497 | 1497 | " data, difference, ci_low, ci_high = extract_curve_data(dabest_object)\n", |
1498 | 1498 | "\n", |
1499 | 1499 | " if horizontal: \n", |
1500 | | - " violinplot_kwargs.update({'vert': False, 'widths': 1})\n", |
| 1500 | + " violinplot_kwargs.update({'orientation': 'horizontal', 'widths': 1})\n", |
1501 | 1501 | " position = max(rawdata_axes.get_yticks()) + 1\n", |
1502 | 1502 | " half = \"bottom\"\n", |
1503 | 1503 | " effsize_x, effsize_y = difference, [position]\n", |
|
1636 | 1636 | " def plot_effect_size(tick, group, control, bootstrap, effsize, ci_low, ci_high):\n", |
1637 | 1637 | " # Create the violinplot\n", |
1638 | 1638 | " if horizontal: \n", |
1639 | | - " violinplot_kwargs.update({'vert': False, 'widths': 1})\n", |
| 1639 | + " violinplot_kwargs.update({'orientation': 'horizontal', 'widths': 1})\n", |
1640 | 1640 | " \n", |
1641 | 1641 | " v = contrast_axes.violinplot(\n", |
1642 | 1642 | " bootstrap[~np.isinf(bootstrap)],\n", |
|
2162 | 2162 | " zorder=1,\n", |
2163 | 2163 | " orient=orient,\n", |
2164 | 2164 | " )\n", |
| 2165 | + "\n", |
2165 | 2166 | " bar2 = sns.barplot(\n", |
2166 | 2167 | " data=plot_data,\n", |
2167 | 2168 | " x=yvar if horizontal else xvar,\n", |
2168 | 2169 | " y=xvar if horizontal else yvar,\n", |
| 2170 | + " hue=xvar if color_col is None else color_col,\n", |
2169 | 2171 | " ax=rawdata_axes,\n", |
2170 | 2172 | " order=all_plot_groups,\n", |
2171 | 2173 | " palette=plot_palette_bar,\n", |
2172 | | - " hue=color_col,\n", |
2173 | 2174 | " dodge=False,\n", |
2174 | 2175 | " zorder=1,\n", |
2175 | 2176 | " orient=orient,\n", |
|
0 commit comments