original_docstring: 
      Plot a pairwise or multiple sequence alignment coloring each symbol
      based on the symbol type.
  
      This function works like :func:`plot_alignment()` with a
      :class:`SymbolPlotter`, that colors the symbols based on a color
      scheme.
      The color intensity (or colormap value, respectively) of a symbol
      scales with similarity of the respective symbol to the other symbols
      in the same alignment column.
  
      Parameters
      ----------
      axes : Axes
          A *Matplotlib* axes, that is used as plotting area.
      alignment : Alignment
          The pairwise or multiple sequence alignment to be plotted.
          The alphabet of each sequence in the alignment must be the same.
      symbol_plotter : SymbolPlotter
          Defines how the symbols in the alignment are drawn.
      symbols_per_line : int, optional
          The amount of alignment columns that are diplayed per line.
      show_numbers : bool, optional
          If true, the sequence position of the symbols in the last
          alignment column of a line is shown on the right side of the
          plot.
          If the last symbol is a gap, the position of the last actual
          symbol before this gap is taken.
          If the first symbol did not occur up to this point,
          no number is shown for this line.
          By default the first symbol of a sequence has the position 1,
          but this behavior can be changed using the `number_functions`
          parameter.
      number_size : float, optional
          The font size of the position numbers
      number_functions : list of [(None or Callable(int -> int)], optional
          By default the position of the first symbol in a sequence is 1,
          i.e. the sequence position is the sequence index incremented by
          1.
          The behavior can be changed with this parameter:
          If supplied, the length of the list must match the number of
          sequences in the alignment.
          Every entry is a function that maps a sequence index (*int*) to
          a sequence position (*int*) for the respective sequence.
          A `None` entry means, that the default numbering is applied
          for the sequence.
      labels : list of str, optional
          The sequence labels.
          Must be the same size and order as the sequences in the
          alignment.
      label_size : float, optional
          Font size of the labels
      show_line_position : bool, optional
          If true the position within a line is plotted below the
          alignment.
      spacing : float, optional
          The spacing between the alignment lines. 1.0 means that the size
          is equal to the size of a symbol box.
      color_scheme : str or list of (tuple or str), optional
          Either a valid color scheme name
          (e.g. ``"rainbow"``, ``"clustalx"``, ``blossom``, etc.)
          or a list of *Matplotlib* compatible colors.
          The list length must be at least as long as the
          length of the alphabet used by the sequences.
      color_symbols : bool, optional
          If true, the symbols themselves are colored.
          If false, the symbols are black, and the boxes behind the
          symbols are colored.
      symbol_size : float, optional
          Font size of the sequence symbols.
      symbol_param : dict
          Additional parameters that is given to the
          :class:`matplotlib.Text` instance of each symbol.
      
      See also
      --------
      plot_alignment
      LetterTypePlotter
      
docstring: Plot a pairwise or multiple sequence alignment coloring each symbol
  based on the symbol type.
  
  This function works like :func:`plot_alignment()` with a
docstring_tokens: Plot a pairwise or multiple sequence alignment coloring each symbol based on the symbol type . This function works like : func : ` plot_alignment () ` with a
code: def plot_alignment_type_based(axes, alignment, symbols_per_line=50,
                                show_numbers=False, number_size=None,
                                number_functions=None,
                                labels=None, label_size=None,
                                show_line_position=False,
                                spacing=1,
                                color_scheme=None, color_symbols=False,
                                symbol_size=None, symbol_param=None):
      """
      Plot a pairwise or multiple sequence alignment coloring each symbol
      based on the symbol type.
  
      This function works like :func:`plot_alignment()` with a
      :class:`SymbolPlotter`, that colors the symbols based on a color
      scheme.
      The color intensity (or colormap value, respectively) of a symbol
      scales with similarity of the respective symbol to the other symbols
      in the same alignment column.
  
      Parameters
      ----------
      axes : Axes
          A *Matplotlib* axes, that is used as plotting area.
      alignment : Alignment
          The pairwise or multiple sequence alignment to be plotted.
          The alphabet of each sequence in the alignment must be the same.
      symbol_plotter : SymbolPlotter
          Defines how the symbols in the alignment are drawn.
      symbols_per_line : int, optional
          The amount of alignment columns that are diplayed per line.
      show_numbers : bool, optional
          If true, the sequence position of the symbols in the last
          alignment column of a line is shown on the right side of the
          plot.
          If the last symbol is a gap, the position of the last actual
          symbol before this gap is taken.
          If the first symbol did not occur up to this point,
          no number is shown for this line.
          By default the first symbol of a sequence has the position 1,
          but this behavior can be changed using the `number_functions`
          parameter.
      number_size : float, optional
          The font size of the position numbers
      number_functions : list of [(None or Callable(int -> int)], optional
          By default the position of the first symbol in a sequence is 1,
          i.e. the sequence position is the sequence index incremented by
          1.
          The behavior can be changed with this parameter:
          If supplied, the length of the list must match the number of
          sequences in the alignment.
          Every entry is a function that maps a sequence index (*int*) to
          a sequence position (*int*) for the respective sequence.
          A `None` entry means, that the default numbering is applied
          for the sequence.
      labels : list of str, optional
          The sequence labels.
          Must be the same size and order as the sequences in the
          alignment.
      label_size : float, optional
          Font size of the labels
      show_line_position : bool, optional
          If true the position within a line is plotted below the
          alignment.
      spacing : float, optional
          The spacing between the alignment lines. 1.0 means that the size
          is equal to the size of a symbol box.
      color_scheme : str or list of (tuple or str), optional
          Either a valid color scheme name
          (e.g. ``"rainbow"``, ``"clustalx"``, ``blossom``, etc.)
          or a list of *Matplotlib* compatible colors.
          The list length must be at least as long as the
          length of the alphabet used by the sequences.
      color_symbols : bool, optional
          If true, the symbols themselves are colored.
          If false, the symbols are black, and the boxes behind the
          symbols are colored.
      symbol_size : float, optional
          Font size of the sequence symbols.
      symbol_param : dict
          Additional parameters that is given to the
          :class:`matplotlib.Text` instance of each symbol.
      
      See also
      --------
      plot_alignment
      LetterTypePlotter
      """
      alphabet = alignment.sequences[0].get_alphabet()
      symbol_plotter = LetterTypePlotter(
          axes, alphabet, font_size=symbol_size, font_param=symbol_param,
          color_symbols=color_symbols, color_scheme=color_scheme
      )
      plot_alignment(
          axes=axes, alignment=alignment, symbol_plotter=symbol_plotter,
          symbols_per_line=symbols_per_line,
          show_numbers=show_numbers, number_size=number_size,
          number_functions=number_functions,
          labels=labels, label_size=label_size,
          show_line_position=show_line_position,
          spacing=spacing
      )
code_tokens: def plot_alignment_type_based ( axes , alignment , symbols_per_line = 50 , show_numbers = False , number_size = None , number_functions = None , labels = None , label_size = None , show_line_position = False , spacing = 1 , color_scheme = None , color_symbols = False , symbol_size = None , symbol_param = None ) : alphabet = alignment . sequences [ 0 ] . get_alphabet ( ) symbol_plotter = LetterTypePlotter ( axes , alphabet , font_size = symbol_size , font_param = symbol_param , color_symbols = color_symbols , color_scheme = color_scheme ) plot_alignment ( axes = axes , alignment = alignment , symbol_plotter = symbol_plotter , symbols_per_line = symbols_per_line , show_numbers = show_numbers , number_size = number_size , number_functions = number_functions , labels = labels , label_size = label_size , show_line_position = show_line_position , spacing = spacing )
short_docstring: Plot a pairwise or multiple sequence alignment coloring each symbol
  based on the symbol type.
short_docstring_tokens: Plot a pairwise or multiple sequence alignment coloring each symbol based on the symbol type .
comment: """
      Plot a pairwise or multiple sequence alignment coloring each symbol
      based on the symbol type.
  
      This function works like :func:`plot_alignment()` with a
      :class:`SymbolPlotter`, that colors the symbols based on a color
      scheme.
      The color intensity (or colormap value, respectively) of a symbol
      scales with similarity of the respective symbol to the other symbols
      in the same alignment column.
  
      Parameters
      ----------
      axes : Axes
          A *Matplotlib* axes, that is used as plotting area.
      alignment : Alignment
          The pairwise or multiple sequence alignment to be plotted.
          The alphabet of each sequence in the alignment must be the same.
      symbol_plotter : SymbolPlotter
          Defines how the symbols in the alignment are drawn.
      symbols_per_line : int, optional
          The amount of alignment columns that are diplayed per line.
      show_numbers : bool, optional
          If true, the sequence position of the symbols in the last
          alignment column of a line is shown on the right side of the
          plot.
          If the last symbol is a gap, the position of the last actual
          symbol before this gap is taken.
          If the first symbol did not occur up to this point,
          no number is shown for this line.
          By default the first symbol of a sequence has the position 1,
          but this behavior can be changed using the `number_functions`
          parameter.
      number_size : float, optional
          The font size of the position numbers
      number_functions : list of [(None or Callable(int -> int)], optional
          By default the position of the first symbol in a sequence is 1,
          i.e. the sequence position is the sequence index incremented by
          1.
          The behavior can be changed with this parameter:
          If supplied, the length of the list must match the number of
          sequences in the alignment.
          Every entry is a function that maps a sequence index (*int*) to
          a sequence position (*int*) for the respective sequence.
          A `None` entry means, that the default numbering is applied
          for the sequence.
      labels : list of str, optional
          The sequence labels.
          Must be the same size and order as the sequences in the
          alignment.
      label_size : float, optional
          Font size of the labels
      show_line_position : bool, optional
          If true the position within a line is plotted below the
          alignment.
      spacing : float, optional
          The spacing between the alignment lines. 1.0 means that the size
          is equal to the size of a symbol box.
      color_scheme : str or list of (tuple or str), optional
          Either a valid color scheme name
          (e.g. ``"rainbow"``, ``"clustalx"``, ``blossom``, etc.)
          or a list of *Matplotlib* compatible colors.
          The list length must be at least as long as the
          length of the alphabet used by the sequences.
      color_symbols : bool, optional
          If true, the symbols themselves are colored.
          If false, the symbols are black, and the boxes behind the
          symbols are colored.
      symbol_size : float, optional
          Font size of the sequence symbols.
      symbol_param : dict
          Additional parameters that is given to the
          :class:`matplotlib.Text` instance of each symbol.
      
      See also
      --------
      plot_alignment
      LetterTypePlotter
      """