@@ -1211,7 +1211,7 @@ def _add_domain_is_3d(layout, s_label, x_domain, y_domain):
1211
1211
empty_str = ' (empty) ' # empty cell string
1212
1212
1213
1213
# Init grid_str with intro message
1214
- grid_str = "This is the format of your plot grid:\n "
1214
+ grid_str = "This is the formats of your plot grid:\n "
1215
1215
1216
1216
# Init tmp list of lists of strings (sorta like 'grid_ref' but w/ strings)
1217
1217
_tmp = [['' for c in range (cols )] for r in range (rows )]
@@ -2708,7 +2708,7 @@ def _violinplot(vals, fillcolor='#1f77b4', rugplot=True):
2708
2708
@staticmethod
2709
2709
def _violin_no_colorscale (data , data_header , group_header , colors ,
2710
2710
use_colorscale , group_stats ,
2711
- height , width , title ):
2711
+ height , width , title , print_grid ):
2712
2712
"""
2713
2713
Refer to FigureFactory.create_violin() for docstring.
2714
2714
@@ -2731,7 +2731,7 @@ def _violin_no_colorscale(data, data_header, group_header, colors,
2731
2731
fig = make_subplots (rows = 1 , cols = L ,
2732
2732
shared_yaxes = True ,
2733
2733
horizontal_spacing = 0.025 ,
2734
- print_grid = True )
2734
+ print_grid = print_grid )
2735
2735
color_index = 0
2736
2736
for k , gr in enumerate (group_name ):
2737
2737
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,
2769
2769
2770
2770
@staticmethod
2771
2771
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 , print_grid ):
2773
2774
"""
2774
2775
Refer to FigureFactory.create_violin() for docstring.
2775
2776
@@ -2799,7 +2800,7 @@ def _violin_colorscale(data, data_header, group_header, colors,
2799
2800
fig = make_subplots (rows = 1 , cols = L ,
2800
2801
shared_yaxes = True ,
2801
2802
horizontal_spacing = 0.025 ,
2802
- print_grid = True )
2803
+ print_grid = print_grid )
2803
2804
2804
2805
# prepare low and high color for colorscale
2805
2806
lowcolor = FigureFactory ._color_parser (
@@ -2870,7 +2871,7 @@ def _violin_colorscale(data, data_header, group_header, colors,
2870
2871
2871
2872
@staticmethod
2872
2873
def _violin_dict (data , data_header , group_header , colors , use_colorscale ,
2873
- group_stats , height , width , title ):
2874
+ group_stats , height , width , title , print_grid ):
2874
2875
"""
2875
2876
Refer to FigureFactory.create_violin() for docstring.
2876
2877
@@ -2900,7 +2901,7 @@ def _violin_dict(data, data_header, group_header, colors, use_colorscale,
2900
2901
fig = make_subplots (rows = 1 , cols = L ,
2901
2902
shared_yaxes = True ,
2902
2903
horizontal_spacing = 0.025 ,
2903
- print_grid = True )
2904
+ print_grid = print_grid )
2904
2905
2905
2906
for k , gr in enumerate (group_name ):
2906
2907
vals = np .asarray (gb .get_group (gr )[data_header ], np .float )
@@ -2936,7 +2937,8 @@ def _violin_dict(data, data_header, group_header, colors, use_colorscale,
2936
2937
@staticmethod
2937
2938
def create_violin (data , data_header = None , group_header = None ,
2938
2939
colors = None , use_colorscale = False , group_stats = None ,
2939
- height = 450 , width = 600 , title = 'Violin and Rug Plot' ):
2940
+ height = 450 , width = 600 , title = 'Violin and Rug Plot' ,
2941
+ print_grid = True ):
2940
2942
"""
2941
2943
Returns figure for a violin plot
2942
2944
@@ -2968,6 +2970,8 @@ def create_violin(data, data_header=None, group_header=None,
2968
2970
:param (float) height: the height of the violin plot
2969
2971
:param (float) width: the width of the violin plot
2970
2972
:param (str) title: the title of the violin plot
2973
+ :param (str) print_grid: determines if make_subplots() returns a
2974
+ printed string displaying the rows/columns dimensions
2971
2975
2972
2976
Example 1: Single Violin Plot
2973
2977
```
@@ -3134,13 +3138,15 @@ def create_violin(data, data_header=None, group_header=None,
3134
3138
# validate colors dict choice below
3135
3139
fig = FigureFactory ._violin_dict (
3136
3140
data , data_header , group_header , valid_colors ,
3137
- use_colorscale , group_stats , height , width , title
3141
+ use_colorscale , group_stats , height , width , title ,
3142
+ print_grid
3138
3143
)
3139
3144
return fig
3140
3145
else :
3141
3146
fig = FigureFactory ._violin_no_colorscale (
3142
3147
data , data_header , group_header , valid_colors ,
3143
- use_colorscale , group_stats , height , width , title
3148
+ use_colorscale , group_stats , height , width , title ,
3149
+ print_grid
3144
3150
)
3145
3151
return fig
3146
3152
else :
@@ -3160,7 +3166,8 @@ def create_violin(data, data_header=None, group_header=None,
3160
3166
3161
3167
fig = FigureFactory ._violin_colorscale (
3162
3168
data , data_header , group_header , valid_colors ,
3163
- use_colorscale , group_stats , height , width , title
3169
+ use_colorscale , group_stats , height , width , title ,
3170
+ print_grid
3164
3171
)
3165
3172
return fig
3166
3173
0 commit comments