Skip to content

Commit 79d5ffc

Browse files
committed
added defaults to doc string
1 parent ae372e7 commit 79d5ffc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plotly/figure_factory/_violin.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,14 @@ def create_violin(data, data_header=None, group_header=None, colors=None,
434434
variable. Will implement a colorscale based on the first 2 colors
435435
of param colors. This means colors must be a list with at least 2
436436
colors in it (Plotly colorscales are accepted since they map to a
437-
list of two rgb colors).
437+
list of two rgb colors). Default = False
438438
:param (dict) group_stats: a dictioanry where each key is a unique
439439
value from the group_header column in data. Each value must be a
440440
number and will be used to color the violin plots if a colorscale
441441
is being used.
442442
:param (bool) rugplot: determines if a rugplot is draw on violin plot.
443-
:param (bool) sort: determines if violins are sorted.
443+
Default = True
444+
:param (bool) sort: determines if violins are sorted. Default = False
444445
alphabetically (True) or by inputted order (False).
445446
:param (float) height: the height of the violin plot.
446447
:param (float) width: the width of the violin plot.

0 commit comments

Comments
 (0)