support polygon mode. if you want to plot in line mode, please add -L option