# Bio.Graphics.Comparative module

Plots to compare information between different sources.

This file contains high level plots which are designed to be used to compare different types of information. The most basic example is comparing two variables in a traditional scatter plot.

class Bio.Graphics.Comparative.ComparativeScatterPlot(output_format='pdf')

  Bases: `object`

  Display a scatter-type plot comparing two different kinds of info.

  Attributes;

    - display_info - a 2D list of the information we’ll be outputting. Each top level list is a different data type, and each data point is a two-tuple of the coordinates of a point.

  So if you had two distributions of points, it should look like:

      display_info = [[(1, 2), (3, 4)],
                      [(5, 6), (7, 8)]]

  If everything is just one set of points, display_info can look like:

      display_info = [[(1, 2), (3, 4), (5, 6)]]

  __init__(output_format='pdf')

    Initialize the class.

  draw_to_file(output_file, title)

    Write the comparative plot to a file.

    Arguments:

      - output_file - The name of the file to output the information to, or a handle to write to.

      - title - A title to display on the graphic.

  __annotate_func__ = None
  __annotations_cache__ = {}
  __firstlineno__ = 30
  __static_attributes__ = ('color_choices', 'display_info', 'number_of_columns', 'output_format', 'page_size', 'shape_choices', 'title_size')

Biopython v: 1.86

Versions
  Previous
  Latest
  Develop

Biopython Project
  Homepage
  On GitHub