plotting code
plotting code + merge