|
1498 | 1498 | "\n", |
1499 | 1499 | " if horizontal: \n", |
1500 | 1500 | " violinplot_kwargs.update({'vert': False, 'widths': 1})\n", |
1501 | | - " position = max(rawdata_axes.get_yticks()) + 2\n", |
| 1501 | + " position = max(rawdata_axes.get_yticks()) + 1\n", |
1502 | 1502 | " half = \"bottom\"\n", |
1503 | 1503 | " effsize_x, effsize_y = difference, [position]\n", |
1504 | 1504 | " ci_x, ci_y = [ci_low, ci_high], [position, position]\n", |
1505 | 1505 | " else:\n", |
1506 | | - " # position = max(rawdata_axes.get_xticks()) + 2\n", |
1507 | 1506 | " position = max(rawdata_axes.get_xticks()) + 1\n", |
1508 | 1507 | " half = \"right\"\n", |
1509 | 1508 | " effsize_x, effsize_y = [position], difference\n", |
|
1931 | 1930 | " # Add delta-delta or mini_meta details to the table\n", |
1932 | 1931 | " if show_mini_meta or show_delta2:\n", |
1933 | 1932 | " if show_delta2:\n", |
1934 | | - " added_group_name = [\"deltas' g\"] if effect_size == \"hedges_g\" else [\"delta-delta\"]\n", |
| 1933 | + " added_group_name = [\"Deltas' g\"] if effect_size == \"hedges_g\" else [\"Delta-Delta\"]\n", |
1935 | 1934 | " else:\n", |
1936 | | - " added_group_name = [\"Weighted delta\"]\n", |
| 1935 | + " added_group_name = [\"Weighted Delta\"]\n", |
1937 | 1936 | " gridkey_rows = added_group_name + gridkey_rows\n", |
1938 | 1937 | " table_cellcols = [[\"\"]*len(table_cellcols[0])] + table_cellcols\n", |
1939 | 1938 | "\n", |
|
1961 | 1960 | " elif horizontal or show_mini_meta:\n", |
1962 | 1961 | " for group_idx, group_vals in enumerate(table_cellcols):\n", |
1963 | 1962 | " if group_idx == 0:\n", |
1964 | | - " added_group = [gridkey_marker] if not horizontal else [\" \", gridkey_marker] \n", |
| 1963 | + " added_group = [gridkey_marker]\n", |
1965 | 1964 | " elif gridkey_show_es and (group_idx == len(table_cellcols)-1) and not horizontal:\n", |
1966 | 1965 | " added_delta_effectsize = delta_delta.difference if show_delta2 else mini_meta.difference\n", |
1967 | 1966 | " added_delta_effectsize_str = np.format_float_positional(\n", |
|
1971 | 1970 | " trim=\"k\",\n", |
1972 | 1971 | " min_digits=2,\n", |
1973 | 1972 | " )\n", |
1974 | | - " added_group = [added_delta_effectsize_str] if not horizontal else ['', added_delta_effectsize_str]\n", |
| 1973 | + " added_group = [added_delta_effectsize_str]\n", |
1975 | 1974 | " else:\n", |
1976 | | - " added_group = [''] if not horizontal else ['', '']\n", |
| 1975 | + " added_group = ['']\n", |
1977 | 1976 | " for n in added_group:\n", |
1978 | 1977 | " group_vals.append(n)\n", |
1979 | 1978 | "\n", |
|
2254 | 2253 | "\n", |
2255 | 2254 | " ### Plot the text\n", |
2256 | 2255 | " if show_mini_meta or show_delta2:\n", |
2257 | | - " new_ticks = ticks_to_plot + [max(ticks_to_plot)+2]\n", |
| 2256 | + " new_ticks = ticks_to_plot + [max(ticks_to_plot)+1]\n", |
2258 | 2257 | " else:\n", |
2259 | 2258 | " new_ticks = ticks_to_plot.copy()\n", |
2260 | 2259 | " for i,loc in zip(tab.index, new_ticks):\n", |
|
0 commit comments