Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion statannotations/Annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'use_fixed_offset',
'verbose',
'hide_non_significant',
'fontcolor'
]


Expand All @@ -59,6 +60,7 @@
"line_width": 1.5,
"custom_annotations": None,
"hide_non_significant": False,
"fontcolor" : '0.2',
}

ENGINE_PLOTTERS = {"seaborn": _SeabornPlotter}
Expand Down Expand Up @@ -133,6 +135,7 @@ def __init__(self, ax, pairs, plot='boxplot', data=None, x=None,
self.value_offset = None
self.custom_annotations = None
self.hide_non_significant = False
self.fontcolor = self.color

@staticmethod
def get_empty_annotator():
Expand Down Expand Up @@ -549,7 +552,7 @@ def _annotate_pair(self, annotation, ax_to_data, ann_list, orig_value_lim):
annotation.text, textcoords='offset points',
xycoords='data', ha='center', va='bottom',
fontsize=self._pvalue_format.fontsize, clip_on=False,
annotation_clip=False, **xy_params)
annotation_clip=False, color=self.fontcolor, **xy_params)

if annotation.text is not None:
ann_list.append(ann)
Expand Down