modified exampe to make a test vector plot