Changes to graphs to correct behavior problems of plot