Skip to content

Commit 57f0c58

Browse files
committed
Edit text for swarmplot legend
1 parent 2df0aff commit 57f0c58

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

dabest/plotter.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def effectsize_df_plotter(effectsize_df, **plot_kwargs):
398398
legend_kwargs=legend_kwargs
399399
)
400400

401-
########## WIP LEGENDS
401+
# Add legend for swarmplot
402402
if not show_pairs and not proportional and color_col is not None and not show_delta2:
403403
if len(np.unique(swarm_legend_kwargs['index'])) > 1:
404404
legend_elements = []
@@ -407,8 +407,6 @@ def effectsize_df_plotter(effectsize_df, **plot_kwargs):
407407
markerfacecolor=color, markersize=10))
408408
rawdata_axes.legend(handles=legend_elements, frameon=False)
409409

410-
########## WIP LEGENDS
411-
412410
# Plot aesthetic adjustments.
413411
og_ylim_raw = rawdata_axes.get_ylim()
414412
og_xlim_raw = rawdata_axes.get_xlim()

nbs/API/plotter.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457
" legend_kwargs=legend_kwargs\n",
458458
" )\n",
459459
"\n",
460-
" ########## WIP LEGENDS\n",
460+
" # Add legend for swarmplot\n",
461461
" if not show_pairs and not proportional and color_col is not None and not show_delta2:\n",
462462
" if len(np.unique(swarm_legend_kwargs['index'])) > 1:\n",
463463
" legend_elements = []\n",
@@ -466,8 +466,6 @@
466466
" markerfacecolor=color, markersize=10))\n",
467467
" rawdata_axes.legend(handles=legend_elements, frameon=False)\n",
468468
"\n",
469-
" ########## WIP LEGENDS\n",
470-
"\n",
471469
" # Plot aesthetic adjustments.\n",
472470
" og_ylim_raw = rawdata_axes.get_ylim()\n",
473471
" og_xlim_raw = rawdata_axes.get_xlim()\n",

0 commit comments

Comments
 (0)