Script to plot patches