mosaicmpi.utils.newline_wrap

Contents

mosaicmpi.utils.newline_wrap#

mosaicmpi.utils.newline_wrap(string, length=40)#

Adds n characters to a string at a specified length. Helps to control the width of Text objects in plots.

Parameters:
  • string (str) – input string

  • length (int, optional) – number of characters per line, defaults to 40

Returns:

wrapped string

Return type:

str