figureflow.figure_panel.FigurePanel.draw_on_image

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

Draw on each of the images specified.

Parameters:
  • targets – target position in form [x,y] or list of positions, will determine where the shape ends

  • direction – direction of object from the target, can be supplied in three different forms: position in form [x,y], will determine direction, starting from target degrees as int, while 12o’clock is 0 degree string like “top” or “top-left” or “bottom-right” by default direction starts at head and goes towards tail (see param direction_from_head_to_tail)

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

  • style – can be “arrow” or “*”

  • color – color of drawn shape

  • size – size of marker in pt, also scaled for current figure size to have a good standard value

  • direction_from_head_to_tail – Bool; Whether direction supplied as string should be considered starting from the head going towards the tail (True) or the other way around (False)

  • arrow_width_factor – width of arrow_tail in axes coords if style == arrow

  • arrow_head_width_factor – width of arrow head in axes coords if style == arrow

  • arrow_head_length_factor – length of arrow head in axes coords if style == arrow