Use variable to determine graph size