Back to index

python-biopython  1.60
Classes | Functions | Variables
test_GraphicsDistribution Namespace Reference

Classes

class  BarChartTest

Functions

def random_distribution

Variables

tuple runner = unittest.TextTestRunner(verbosity = 2)

Function Documentation

def test_GraphicsDistribution.random_distribution (   min = -5.0,
  max = 5.0,
  total_items = 50 
)
Create a series of random distribution information.

Definition at line 31 of file test_GraphicsDistribution.py.

00031 
00032 def random_distribution(min = -5.0, max = 5.0, total_items = 50):
00033     """Create a series of random distribution information.
00034     """
00035     num_items = random.randrange(5, total_items)
00036     all_info = []
00037     for item in range(num_items):
00038         new_item = random.uniform(min, max)
00039         all_info.append(new_item)
00040 
00041     return all_info

Here is the caller graph for this function:


Variable Documentation

tuple test_GraphicsDistribution.runner = unittest.TextTestRunner(verbosity = 2)

Definition at line 83 of file test_GraphicsDistribution.py.