Use math for numbers in diagram