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__(self, output_format='pdf')¶
Initialize the class.
- draw_to_file(self, 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.