Fix plot_scan_2d so that it will display the labels correctly