@@ -797,15 +797,15 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
797797 delta_axes .set_ylim (ylim )
798798
799799 if is_paired == "baseline" and show_pairs == True :
800- rightend_ticks_raw = np .array ([len (i )- 1 for i in temp_idx ]) + np .array (temp_ticks_to_skip )
800+ rightend_ticks_raw = np .array ([len (i )- 1 for i in temp_idx ]) + np .array (ticks_to_skip )
801801 for ax in [rawdata_axes ]:
802802 sns .despine (ax = ax , bottom = True )
803803
804804 ylim = ax .get_ylim ()
805805 xlim = ax .get_xlim ()
806806 redraw_axes_kwargs ['y' ] = ylim [0 ]
807807
808- for k , start_tick in enumerate (temp_ticks_to_skip ):
808+ for k , start_tick in enumerate (ticks_to_skip ):
809809 end_tick = rightend_ticks_raw [k ]
810810 ax .hlines (xmin = start_tick , xmax = end_tick ,
811811 ** redraw_axes_kwargs )
@@ -814,6 +814,8 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
814814 del redraw_axes_kwargs ['y' ]
815815
816816 temp_length = [(len (i )- 1 )* 2 - 1 for i in idx ]
817+ if delta2 :
818+ temp_length .append (1 )
817819 rightend_ticks_contrast = np .array (temp_length ) + np .array (ticks_to_skip_contrast )
818820 for ax in [contrast_axes ]:
819821 sns .despine (ax = ax , bottom = True )
@@ -848,8 +850,6 @@ def EffectSizeDataFramePlotter(EffectSizeDataFrame, **plot_kwargs):
848850 del redraw_axes_kwargs ['y' ]
849851
850852 if delta2 :
851- rightend_ticks = np .array ([len (i )- 1 for i in idx ]) + np .array (ticks_to_skip )
852-
853853 sns .despine (ax = delta_axes , bottom = True )
854854
855855 xlim = delta_axes .get_xlim ()
0 commit comments