def strRgb(mag, cmin, cmax):
       """
       Return a tuple of strings to be used in Tk plots.
       """

       red, green, blue = floatRgb(mag, cmin, cmax)       
       return "#%02x%02x%02x" % (red*255, green*255, blue*255)

       Return a tuple of strings to be used in Tk plots.
       
recipes/Python/52273_colormap_Returns_RGB_tuple_0_255_scale/recipe-52273.py