@@ -687,7 +687,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
687687 if bootstraps_color_by_group is False :
688688 legend_labels_unique = np .unique (legend_labels )
689689 unique_idx = np .unique (legend_labels , return_index = True )[1 ]
690- legend_handles_unique = (pd .Series (legend_handles ,dtype = 'float64' ).loc [unique_idx ]).tolist ()
690+ legend_handles_unique = (pd .Series (legend_handles , dtype = "object" ).loc [unique_idx ]).tolist ()
691691
692692 if len (legend_handles_unique ) > 0 :
693693 if float_contrast is True :
@@ -711,6 +711,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
711711 line .set_linewidth (3.0 )
712712
713713 og_ylim_raw = rawdata_axes .get_ylim ()
714+ og_xlim_raw = rawdata_axes .get_xlim ()
714715
715716 if float_contrast is True :
716717 # For Gardner-Altman plots only.
@@ -815,7 +816,7 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
815816 axx .hlines (diff ,
816817 effsize_line_start , xlimhigh ,
817818 ** reflines_kwargs )
818- rawdata_axes .set_xlim (- 0.5 , 1.5 ) # to aligh the axis
819+ rawdata_axes .set_xlim (og_xlim_raw ) # to aligh the axis
819820 # Despine appropriately.
820821 sns .despine (ax = rawdata_axes , bottom = True )
821822 sns .despine (ax = contrast_axes , left = True , right = False )
0 commit comments