Expression diagram formatting