|
175 | 175 | "\n", |
176 | 176 | " # Extract parameters and set kwargs\n", |
177 | 177 | " (dabest_obj, plot_data, xvar, yvar, is_paired, effect_size, proportional, all_plot_groups, idx, \n", |
178 | | - " show_delta2, show_mini_meta, float_contrast, show_pairs, effect_size_type, group_summaries, err_color, horizontal,\n", |
| 178 | + " show_delta2, show_mini_meta, float_contrast, show_pairs, group_summaries, err_color, horizontal,\n", |
179 | 179 | " results, halfviolin_alpha, ci_type, x1_level, experiment_label, show_baseline_ec) = get_params(\n", |
180 | 180 | " \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teffectsize_df = effectsize_df, \n", |
181 | 181 | " plot_kwargs = plot_kwargs,\n", |
182 | 182 | " )\n", |
| 183 | + " \n", |
| 184 | + " print(effect_size)\n", |
183 | 185 | "\n", |
184 | 186 | " (swarmplot_kwargs, barplot_kwargs, sankey_kwargs, \n", |
185 | 187 | " violinplot_kwargs, slopegraph_kwargs, reflines_kwargs, legend_kwargs,\n", |
|
223 | 225 | " show_pairs = show_pairs, \n", |
224 | 226 | " proportional = proportional, \n", |
225 | 227 | " float_contrast = float_contrast,\n", |
226 | | - " effect_size_type = effect_size_type,\n", |
| 228 | + " effect_size_type = effect_size,\n", |
227 | 229 | " yvar = yvar,\n", |
228 | 230 | " horizontal = horizontal,\n", |
229 | 231 | " show_table = table_kwargs['show']\n", |
|
255 | 257 | " \n", |
256 | 258 | " # Add delta dots to the contrast axes for paired plots.\n", |
257 | 259 | " show_delta_dots = plot_kwargs[\"delta_dot\"]\n", |
258 | | - " if show_delta_dots and is_paired is not None:\n", |
| 260 | + " unavailable_effect_sizes = [\"hedges_g\", \"delta_g\", \"cohens_d\"]\n", |
| 261 | + " if show_delta_dots and is_paired and not any([es in effect_size for es in unavailable_effect_sizes]):\n", |
259 | 262 | " DeltaDotsPlotter(\n", |
260 | 263 | " plot_data = plot_data, \n", |
261 | 264 | " contrast_axes = contrast_axes, \n", |
|
481 | 484 | " if float_contrast and not horizontal:\n", |
482 | 485 | " # For Gardner-Altman plots only.\n", |
483 | 486 | " Gardner_Altman_Plot_Aesthetic_Adjustments(\n", |
484 | | - " effect_size_type = effect_size_type, \n", |
| 487 | + " effect_size_type = effect_size, \n", |
485 | 488 | " plot_data = plot_data, \n", |
486 | 489 | " xvar = xvar, \n", |
487 | 490 | " yvar = yvar, \n", |
|
0 commit comments