Skip to content

Commit

Permalink
Added more kwargs options for deltadots
Browse files Browse the repository at this point in the history
  • Loading branch information
JAnns98 committed Sep 8, 2024
1 parent 2982292 commit 601b74e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dabest/_effsize_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ def plot(
Whether or not to display the delta dots on paired or repeated measure plots.
delta_dot_kwargs : dict, default None
Pass relevant keyword arguments. If None, the following keywords are passed:
{"marker": "^", "alpha": 0.5}
{"marker": "^", "alpha": 0.5, "zorder": 2, "size": 3, "side": "right"}
Returns
-------
Expand Down
3 changes: 0 additions & 3 deletions dabest/plot_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,6 @@ def DeltaDotsPlotter(plot_data, contrast_axes, delta_id_col, idx, xvar, yvar, is
order=None,
hue=color_col,
palette=plot_palette_deltapts,
zorder=2,
size=3,
side="right",
jitter=jitter,
is_drop_gutter=True,
gutter_limit=1,
Expand Down
2 changes: 1 addition & 1 deletion dabest/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def effectsize_df_plotter(effectsize_df, **plot_kwargs):

##################### DELTA PTS ON CONTRAST PLOT WIP
show_delta_dots = plot_kwargs["delta_dot"]
default_delta_dot_kwargs = {"marker": "^", "alpha": 0.5}
default_delta_dot_kwargs = {"marker": "^", "alpha": 0.5, "zorder": 2, "size": 3, "side": "right"}
if plot_kwargs["delta_dot_kwargs"] is None:
delta_dot_kwargs = default_delta_dot_kwargs
else:
Expand Down
2 changes: 1 addition & 1 deletion nbs/API/effsize_objects.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@
" Whether or not to display the delta dots on paired or repeated measure plots.\n",
" delta_dot_kwargs : dict, default None\n",
" Pass relevant keyword arguments. If None, the following keywords are passed:\n",
" {\"marker\": \"^\", \"alpha\": 0.5}\n",
" {\"marker\": \"^\", \"alpha\": 0.5, \"zorder\": 2, \"size\": 3, \"side\": \"right\"}\n",
"\n",
" Returns\n",
" -------\n",
Expand Down
3 changes: 0 additions & 3 deletions nbs/API/plot_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1156,9 +1156,6 @@
" order=None,\n",
" hue=color_col,\n",
" palette=plot_palette_deltapts,\n",
" zorder=2,\n",
" size=3,\n",
" side=\"right\",\n",
" jitter=jitter,\n",
" is_drop_gutter=True,\n",
" gutter_limit=1,\n",
Expand Down
2 changes: 1 addition & 1 deletion nbs/API/plotter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@
"\n",
" ##################### DELTA PTS ON CONTRAST PLOT WIP\n",
" show_delta_dots = plot_kwargs[\"delta_dot\"]\n",
" default_delta_dot_kwargs = {\"marker\": \"^\", \"alpha\": 0.5}\n",
" default_delta_dot_kwargs = {\"marker\": \"^\", \"alpha\": 0.5, \"zorder\": 2, \"size\": 3, \"side\": \"right\"}\n",
" if plot_kwargs[\"delta_dot_kwargs\"] is None:\n",
" delta_dot_kwargs = default_delta_dot_kwargs\n",
" else:\n",
Expand Down

0 comments on commit 601b74e

Please sign in to comment.