Module ImportFrom alias alias alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Str Assign AttributeStore NameLoad attr Num Expr Str Assign AttributeStore NameLoad attr Num Expr Str Assign AttributeStore NameLoad attr TupleLoad Num Num Num Expr Str Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad BinOpMult BinOpMult NameLoad Num BinOpSub Num NameLoad Return Call NameLoad Call NameLoad NameLoad decorator_list Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Call NameLoad BinOpSub NameLoad BinOpMult NameLoad SubscriptLoad NameLoad Index Str Assign NameStore TupleLoad AttributeLoad NameLoad attr BinOpAdd NameLoad Num Assign NameStore TupleLoad BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad BinOpAdd AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore TupleLoad AttributeLoad NameLoad attr Num Assign NameStore TupleLoad BinOpAdd AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore TupleLoad BinOpAdd NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num BinOpSub BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore TupleLoad BinOpSub BinOpAdd NameLoad AttributeLoad NameLoad attr Num Call NameLoad BinOpDiv BinOpSub AttributeLoad NameLoad attr Num Num Assign NameStore TupleLoad BinOpAdd NameLoad Call NameLoad Call AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Assign NameStore TupleLoad BinOpAdd NameLoad AttributeLoad NameLoad attr Call NameLoad BinOpDiv AttributeLoad NameLoad attr Num Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad Num TupleLoad BinOpSub BinOpAdd NameLoad NameLoad Num AttributeLoad NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Return decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Return Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Num TupleLoad SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num SubscriptLoad NameLoad Slice Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Index Str If CompareGt SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore ListLoad Num Num Num Num Num Assign NameStore ListLoad Num Num Num Assign NameStore ListLoad Num Num Num Assign NameStore Num Assign NameStore Dict For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad NameLoad body Assign NameStore BinOpDiv NameLoad Num orelse If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpMod Str TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Print BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Print Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Str orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad NameLoad NameLoad
N/A __future__ absolute_import division with_statement N/A sys N/A string N/A math N/A csv N/A gd N/A __author__ John Tangney and Dan Mosedale N/A __maintainer__ Ben Keating N/A __email__ oss+longview@longnow.org N/A __version__ 1.1 N/A __copyright__ Copyright (c) 02004 The Long Now Foundation N/A __license__ BSD-style N/A __status__ Beta SlicedImage N/A N/A __init__ N/A N/A self width height N/A N/A N/A N/A self __image N/A N/A gd image N/A width height N/A N/A self __xOffset 0 N/A N/A self __height height N/A N/A self diamondWidth 7 N/A Width of any diamonds rendered. N/A N/A self diamondLeftMargin 2 N/A Width of horizontal margin on the left side a diamond N/A N/A self diamondVerticalMargin 0 N/A Height of vertical margin above and below a diamond N/A N/A self diamondColor N/A 255 255 255 N/A Color used to render diamonds. N/A N/A addSlice N/A N/A self fields N/A N/A N/A Add a slice to this image computeRgbValues N/A N/A rgb saturation brightness N/A N/A N/A N/A map N/A N/A N/A x N/A N/A adjustColorComponent x saturation brightness rgb N/A adjustColorComponent N/A N/A component saturation brightness N/A N/A N/A answer N/A N/A component saturation N/A N/A brightness 255.0 N/A 1 saturation N/A N/A int N/A round answer N/A N/A width N/A fields N/A width N/A height N/A fields N/A height N/A saturation N/A fields N/A saturation N/A brightness N/A fields N/A brightness N/A upperHeight N/A int N/A round N/A height N/A height N/A fields N/A lowerSize N/A tl N/A N/A self __xOffset N/A upperHeight 1 N/A br N/A N/A N/A self __xOffset width height N/A lowerColor N/A N/A N/A self __image colorAllocate N/A computeRgbValues N/A fields N/A lowerColor saturation brightness N/A N/A N/A N/A self __image filledRectangle tl br lowerColor N/A tl N/A N/A self __xOffset upperHeight N/A br N/A N/A N/A self __xOffset width N/A upperHeight 1 N/A dividerColor N/A N/A N/A self __image colorAllocate N/A computeRgbValues N/A fields N/A dividerColor saturation brightness N/A N/A N/A N/A self __image filledRectangle tl br dividerColor N/A tl N/A N/A self __xOffset 0 N/A br N/A N/A N/A self __xOffset width upperHeight N/A upperColor N/A N/A N/A self __image colorAllocate N/A computeRgbValues N/A fields N/A upperColor saturation brightness N/A N/A N/A N/A self __image filledRectangle tl br upperColor N/A N/A self __xOffset width N/A N/A drawDiamond N/A N/A self startX N/A N/A N/A Draw a diamond whose leftmost point is at startX. N/A N/A N/A hasattr self __diamondColorIndex N/A N/A N/A self __diamondColorIndex N/A N/A N/A self __image colorAllocate N/A self diamondColor N/A bottomPoint N/A N/A startX N/A int N/A N/A math ceil N/A N/A self diamondWidth 2 N/A N/A N/A self __height 1 N/A self diamondVerticalMargin N/A rightPoint N/A N/A N/A startX N/A self diamondWidth 1 N/A int N/A N/A N/A self __height 1 2 N/A topPoint N/A N/A startX N/A int N/A N/A math ceil N/A N/A self diamondWidth 2 N/A self diamondVerticalMargin N/A leftPoint N/A N/A startX N/A self diamondLeftMargin N/A int N/A N/A self __height 2 N/A diamond N/A bottomPoint rightPoint topPoint leftPoint N/A N/A N/A N/A self __image filledPolygon diamond N/A self __diamondColorIndex N/A N/A drawFilledSlice N/A N/A self startX width color N/A N/A N/A Draw a filled slice
        
        startX -- X coordinate where slice should start
        width -- width in pixels
        color -- color tuple
         N/A colorIndex N/A N/A N/A self __image colorAllocate color N/A N/A N/A N/A self __image filledRectangle N/A startX 0 N/A N/A N/A startX width 1 N/A self __height colorIndex N/A N/A generate N/A N/A self filename N/A N/A N/A Write out a PNG file for this image N/A file N/A open filename w N/A N/A N/A N/A self __image writePng file N/A N/A N/A file close N/A N/A N/A parseHexColor N/A N/A hex N/A N/A N/A justHex N/A N/A N/A hex split # N/A -1 N/A N/A map N/A N/A N/A x N/A N/A N/A string atoi x 16 N/A N/A justHex N/A 0 2 N/A justHex N/A 2 4 N/A justHex N/A 4 6 N/A calculateTotalSize N/A N/A inputFileName N/A N/A N/A width 0 N/A height 0 N/A reader N/A N/A csv reader N/A file inputFileName N/A row reader N/A N/A fields N/A mapInputFields row N/A width N/A fields N/A width N/A N/A N/A fields N/A height height N/A N/A height N/A fields N/A height N/A N/A N/A int width N/A int height N/A mapInputFields N/A N/A row N/A N/A N/A fields N/A height width lowerSize lowerColor dividerColor upperColor saturation brightness N/A numericFieldNos N/A 0 1 2 6 7 N/A percentFieldNos N/A 2 6 7 N/A hexFieldNos N/A 3 4 5 N/A i 0 N/A answer N/A N/A field fields N/A N/A value N/A row N/A i N/A N/A i numericFieldNos N/A N/A value N/A N/A string atof value N/A N/A i percentFieldNos N/A N/A value N/A value 100.0 N/A N/A N/A i hexFieldNos N/A N/A value N/A parseHexColor value N/A N/A answer N/A field value N/A i N/A i 1 N/A answer N/A makeSlices N/A N/A width height inputFileName outputFileName N/A N/A N/A slices N/A SlicedImage width height N/A reader N/A N/A csv reader N/A file inputFileName N/A row reader N/A N/A fields N/A mapInputFields row N/A N/A N/A slices addSlice fields N/A N/A N/A slices generate outputFileName N/A N/A generateImage N/A N/A inFile outFile N/A N/A N/A N/A Reading from %s and writing to %s N/A inFile outFile N/A N/A width height N/A calculateTotalSize inFile N/A slices N/A makeSlices width height inFile outFile N/A N/A N/A __name__ __main__ N/A N/A N/A N/A len N/A sys argv 1 N/A N/A N/A Usage: %s csvfile [pngfile] N/A N/A sys argv N/A 0 N/A   If pngfile is not specified, its name is derived from csvfile N/A N/A inFile N/A N/A sys argv N/A 1 N/A N/A N/A len N/A sys argv 2 N/A N/A outFile N/A N/A N/A N/A inFile split . N/A 0 .png N/A N/A outFile N/A N/A sys argv N/A 2 N/A N/A generateImage inFile outFile