figureflow.figure_panel.FigurePanel.add_text_within_at_coords

figureflow.figure_panel.FigurePanel.add_text_within_at_coords = <function FigurePanel.add_text_within_at_coords>

Add text on image at coordinates.

Parameters:
  • text – String of text to add. Linebreaks can be added with n

  • x – x coordinate at which to add the text

  • y – y coordinate at which to add the text

  • line_spacing – Line spacing when including a line break

  • font_size – font size either in pt or as “small”, “medium” or “large”

  • hor_align – horizontal alignment of text (“left, “center” and “right” allowed

  • vert_align – Vertical alignment of text (“bottom”, “center” and “top” allowed)

  • orientation – Orientation of text (“hor” or “vert” or degrees)

  • images – dict that specifies on which images should be drawn the key is the category and the value is the allowed value

  • only_show_in_rows – List of rows in which to add the text on images

  • only_show_in_columns – List of columns in which to add the text on images

  • correct_for_cropping – Correct coordinates for applied cropping

  • color – Font color