Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/b/i/biopython-1.63/Tests/test_ColorSpiral.py   biopython(Download)
 
# Biopython Bio.Graphics.ColorSpiral
from Bio.Graphics.ColorSpiral import ColorSpiral, get_colors, get_color_dict
 
 
    def test_dict(self):
        """get_color_dict() for classes A-D, no jitter."""
        classes = ['A', 'B', 'C', 'D']
        colors = get_color_dict(classes, jitter=0)
        cstr = ["%s: (%.2f, %.2f, %.2f)" % (c, r, g, b)

src/b/i/biopython-HEAD/Tests/test_ColorSpiral.py   biopython(Download)
 
# Biopython Bio.Graphics.ColorSpiral
from Bio.Graphics.ColorSpiral import ColorSpiral, get_colors, get_color_dict
 
 
    def test_dict(self):
        """get_color_dict() for classes A-D, no jitter."""
        classes = ['A', 'B', 'C', 'D']
        colors = get_color_dict(classes, jitter=0)
        cstr = ["%s: (%.2f, %.2f, %.2f)" % (c, r, g, b)