changed syntax of plot_lat_func. top_plot = ["Dx","Dy", "x", "y" etc]