Added field type filter to plot script