fixed curve plotting.