Automatic graphic size