@@ -358,6 +358,7 @@ def supervenn(sets, set_annotations=None, figsize=None, side_plots=True,
358
358
clutter)
359
359
:param widths_minmax_ratio: desired max/min ratio of displayed chunk widths, default None (show actual widths)
360
360
:param rotate_col_annotations: True / False, whether to print annotations vertically
361
+ :param fontsize: font size for all text elements
361
362
:param row_annotations_y: a number in (0, 1), position for row annotations in the row. Default 0.5 - center of row.
362
363
:param col_annotations_area_height: height of area for column annotations in inches, 1 by default
363
364
:param col_annotations_ys_count: 1 (default), 2, or 3 - use to reduce clutter in column annotations area
@@ -436,14 +437,17 @@ def supervenn(sets, set_annotations=None, figsize=None, side_plots=True,
436
437
437
438
# Side plots
438
439
if side_plots :
440
+ fontsize = kw .get ('fontsize' , DEFAULT_FONTSIZE )
441
+
439
442
plt .sca (axes ['top_side_plot' ])
440
443
side_plot (composition_array .sum (0 ), col_widths , 'h' ,
441
444
min_width_for_annotation = effective_min_width_for_annotation ,
442
- rotate_annotations = kw .get ('rotate_col_annotations' , False ), color = side_plot_color )
445
+ rotate_annotations = kw .get ('rotate_col_annotations' , False ), color = side_plot_color , fontsize = fontsize )
443
446
plt .xlim (xlim )
444
447
445
448
plt .sca (axes ['right_side_plot' ])
446
- side_plot ([len (sets [i ]) for i in permutations_ ['sets_ordering' ]], [1 ] * len (sets ), 'v' , color = side_plot_color )
449
+ side_plot ([len (sets [i ]) for i in permutations_ ['sets_ordering' ]], [1 ] * len (sets ), 'v' , color = side_plot_color ,
450
+ fontsize = fontsize )
447
451
plt .ylim (ylim )
448
452
449
453
plt .sca (axes ['main' ])
0 commit comments