Skip to content

Commit 3deeeed

Browse files
authored
Merge pull request #557 from plotly/violin_print_subplot
add print_grid param to create_violin
2 parents 1a1d762 + 8626d6d commit 3deeeed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plotly/tools.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,7 @@ def _violin_no_colorscale(data, data_header, group_header, colors,
27312731
fig = make_subplots(rows=1, cols=L,
27322732
shared_yaxes=True,
27332733
horizontal_spacing=0.025,
2734-
print_grid=True)
2734+
print_grid=False)
27352735
color_index = 0
27362736
for k, gr in enumerate(group_name):
27372737
vals = np.asarray(gb.get_group(gr)[data_header], np.float)
@@ -2769,7 +2769,8 @@ def _violin_no_colorscale(data, data_header, group_header, colors,
27692769

27702770
@staticmethod
27712771
def _violin_colorscale(data, data_header, group_header, colors,
2772-
use_colorscale, group_stats, height, width, title):
2772+
use_colorscale, group_stats, height, width,
2773+
title):
27732774
"""
27742775
Refer to FigureFactory.create_violin() for docstring.
27752776
@@ -2799,7 +2800,7 @@ def _violin_colorscale(data, data_header, group_header, colors,
27992800
fig = make_subplots(rows=1, cols=L,
28002801
shared_yaxes=True,
28012802
horizontal_spacing=0.025,
2802-
print_grid=True)
2803+
print_grid=False)
28032804

28042805
# prepare low and high color for colorscale
28052806
lowcolor = FigureFactory._color_parser(
@@ -2900,7 +2901,7 @@ def _violin_dict(data, data_header, group_header, colors, use_colorscale,
29002901
fig = make_subplots(rows=1, cols=L,
29012902
shared_yaxes=True,
29022903
horizontal_spacing=0.025,
2903-
print_grid=True)
2904+
print_grid=False)
29042905

29052906
for k, gr in enumerate(group_name):
29062907
vals = np.asarray(gb.get_group(gr)[data_header], np.float)

0 commit comments

Comments
 (0)