improved plot text drawing