Added UV fit functionality to plot script