Skip to content

Commit d413232

Browse files
committed
Updating the .py files
1 parent 59b3c8c commit d413232

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

dabest/_effsize_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def plot(
13041304
group_summaries : ['mean_sd', 'median_quartiles', 'None'], default "mean_sd".
13051305
Plots the summary statistics for each group. If 'mean_sd', then
13061306
the mean and standard deviation of each group is plotted as a
1307-
notched line beside each group. If 'median_quantiles', then the
1307+
notched line beside each group. For proportion and Sankey plots, this error is the binomial standard error (BSE), sqrt(p(1-p)/n), not the SD. If 'median_quantiles', then the
13081308
median and 25th and 75th percentiles of each group is plotted
13091309
instead. If 'None', the summaries are not shown.
13101310
fig_size : tuple, default None

dabest/plot_tools.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def error_bar(
7070
data: pd.DataFrame, # This DataFrame should be in 'long' format.
7171
x: str, # x column to be plotted.
7272
y: str, # y column to be plotted.
73-
type: str = "mean_sd", # Choose from ['mean_sd', 'median_quartiles']. Plots the summary statistics for each group. If 'mean_sd', then the mean and standard deviation of each group is plotted as a gapped line. If 'median_quantiles', then the median and 25th and 75th percentiles of each group is plotted instead.
73+
type: str = "mean_sd", # Choose from ['mean_sd', 'median_quartiles']. Plots the summary statistics for each group. If 'mean_sd', then the mean and standard deviation of each group is plotted as a gapped line. For proportion and Sankey plots, the error shown is the binomial standard error (BSE), sqrt(p(1-p)/n), rather than the SD. If 'median_quantiles', then the median and 25th and 75th percentiles of each group is plotted instead.
7474
offset: float = 0.2, # Give a single float (that will be used as the x-offset of all gapped lines), or an iterable containing the list of x-offsets.
7575
ax=None, # If a matplotlib Axes object is specified, the gapped lines will be plotted in order on this axes. If None, the current axes (plt.gca()) is used.
7676
line_color="black", # The color of the gapped lines.
@@ -85,11 +85,10 @@ def error_bar(
8585
):
8686
"""
8787
Function to plot the standard deviations as vertical errorbars.
88+
For proportion and Sankey plots, the vertical bars instead show the
89+
BSE of the proportion.
8890
The mean is a gap defined by negative space.
8991
90-
This function combines the functionality of gapped_lines(),
91-
proportional_error_bar(), and sankey_error_bar().
92-
9392
"""
9493

9594
if gap_width_percent < 0 or gap_width_percent > 100:

0 commit comments

Comments
 (0)