pygmt.Figure.paragraph

Figure.paragraph(x, y, text, parwidth, linespacing, font=None, angle=None, justify=None, alignment='left')

Typeset one or multiple paragraphs.

Parameters:
  • x/y – The x, y coordinates of the paragraph.

  • text (str | Sequence[str]) – The paragraph text to typeset. If a sequence of strings is provided, each string is treated as a separate paragraph.

  • parwidth (float | str) – The width of the paragraph.

  • linespacing (float | str) – The spacing between lines.

  • font (float | str | None, default: None) – The font of the text.

  • angle (float | None, default: None) – The angle of the text.

  • justify (Optional[Literal['TL', 'TC', 'TR', 'ML', 'MC', 'MR', 'BL', 'BC', 'BR']], default: None) – The justification of the block of text, relative to the given x, y position.

  • alignment (Literal['left', 'center', 'right', 'justified'], default: 'left') – The alignment of the text. Valid values are "left", "center", "right", and "justified".