test code for antenna pattern on GUI