add plot script for RGflow visualization