Currently seaborn lineplot is not officially supported ( like Annotator(..., plot="boxplot", .. ) init ) but could be nice to have.
Neither could I acheive it using line_offset_to_group=1 , use_fixed_offset=True.
A workaround would be to modify this relevant line where the value is calculated (y-value in axis coords 0...1 = bottom...top)
|
value = self._get_value_for_pair(i_value_max_in_range_g1_g2) |
like to not calculate it but something like
if fixed_val is not None:
print("use fixed val")
value=fixed_val
The header here needs to be adapted
|
def annotate(self, line_offset=None, line_offset_to_group=None): |
and then passed
|
self._annotate_pair( |
|
annotation, |
|
ax_to_data=ax_to_data, |
|
ann_list=ann_list, |
|
orig_value_lim=orig_value_lim, |
|
) |
Then instead of using annotator.apply_and_annotate() , we do
annotator.configure( ... , line_width=0 , ) # hide the bar
annotator.apply_test()
annotator.annotate(fixed_val=1)
Currently seaborn lineplot is not officially supported ( like
Annotator(..., plot="boxplot", ..) init ) but could be nice to have.Neither could I acheive it using
line_offset_to_group=1 , use_fixed_offset=True.A workaround would be to modify this relevant line where the value is calculated (y-value in axis coords 0...1 = bottom...top)
statannotations/statannotations/Annotator.py
Line 525 in 3f020ae
like to not calculate it but something like
The header here needs to be adapted
statannotations/statannotations/Annotator.py
Line 203 in 3f020ae
and then passed
statannotations/statannotations/Annotator.py
Lines 232 to 237 in 3f020ae
Then instead of using
annotator.apply_and_annotate(), we do