Finished plotting code