Skip to content

Commit ef4d4b5

Browse files
committed
Updated edge thickness for barplots with the custom palette [0,1] dict keys
1 parent 905a4ad commit ef4d4b5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dabest/plot_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,7 @@ def barplotter(
19231923
y="proportion",
19241924
ax=rawdata_axes,
19251925
order=all_plot_groups,
1926-
linewidth=2,
1926+
linewidth=1 if filled_bars else 2,
19271927
facecolor=plot_palette_raw[0] if filled_bars else (1, 1, 1, 0),
19281928
edgecolor=edge_colors,
19291929
zorder=1,
@@ -1933,7 +1933,7 @@ def barplotter(
19331933
if filled_bars:
19341934
barplot_kwargs['facecolor'] = plot_palette_raw[1]
19351935
barplot_kwargs['edgecolor'] = 'black'
1936-
barplot_kwargs['linewidth'] = 2
1936+
barplot_kwargs['linewidth'] = 1
19371937
else:
19381938
barplot_kwargs['palette'] = plot_palette_raw
19391939

nbs/API/plot_tools.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@
19741974
" y=\"proportion\",\n",
19751975
" ax=rawdata_axes,\n",
19761976
" order=all_plot_groups,\n",
1977-
" linewidth=2,\n",
1977+
" linewidth=1 if filled_bars else 2,\n",
19781978
" facecolor=plot_palette_raw[0] if filled_bars else (1, 1, 1, 0),\n",
19791979
" edgecolor=edge_colors,\n",
19801980
" zorder=1,\n",
@@ -1984,7 +1984,7 @@
19841984
" if filled_bars:\n",
19851985
" barplot_kwargs['facecolor'] = plot_palette_raw[1]\n",
19861986
" barplot_kwargs['edgecolor'] = 'black'\n",
1987-
" barplot_kwargs['linewidth'] = 2\n",
1987+
" barplot_kwargs['linewidth'] = 1\n",
19881988
" else:\n",
19891989
" barplot_kwargs['palette'] = plot_palette_raw\n",
19901990
"\n",
48 Bytes
Loading

0 commit comments

Comments
 (0)