Made graphs.m find the length of the available data automatically.