Base labelpos on size of graph