cut words earlier in legends for graphs