'Converts a temperature, in degrees, to a pixel position'

def _y_pos(self, temperature):

    frac = (float((temperature - self.minyvalue)) / (self.maxyvalue - self.minyvalue))
    return int(((1.0 - frac) * (self.height - 1)))
