Skip to content

Commit 61c26cc

Browse files
authored
Add missing rugplot property passing inside violin_no_colorscale
When trying to plot my violin, I noticed rugplot=False was not being respected. This is a proposed fix. As a point of discussion, should the rugplot=True|False property name be normalized between the figure factories? For example, in _distplot.py the corresponding property name is "show_rug" instead of "rugplot".
1 parent 9ea6ee7 commit 61c26cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotly/figure_factory/_violin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def violin_no_colorscale(data, data_header, group_header, colors,
224224
if color_index >= len(colors):
225225
color_index = 0
226226
plot_data, plot_xrange = violinplot(vals,
227-
fillcolor=colors[color_index])
227+
fillcolor=colors[color_index],
228+
rugplot=rugplot)
228229
layout = graph_objs.Layout()
229230

230231
for item in plot_data:

0 commit comments

Comments
 (0)