Plotting edges problems solved