(self, data_x, data_y)
return (screen_x, screen_y)
data to pixel coords
data to pixel coords
data to pixel coords
def data_to_pixel(self, data_x, data_y):
        """ data to pixel coords
        """
        top_gap = self._header_height + self._char_height + self._ver_spacing
        screen_x = int(ceil(data_x * self._char_width))
        screen_y = int(ceil(data_y * (self._char_height + self._ver_spacing)))
        screen_y += top_gap
        return (screen_x, screen_y)
def data_to_pixel ( self , data_x , data_y ) : top_gap = self . _header_height + self . _char_height + self . _ver_spacing screen_x = int ( ceil ( data_x * self . _char_width ) ) screen_y = int ( ceil ( data_y * ( self . _char_height + self . _ver_spacing ) ) ) screen_y += top_gap return ( screen_x , screen_y )