Hi @Nanda,
I think I came up with a workaround that should solve the problem momentarily. If you are using a 3D monitor, you can use vectorplot command, and set the resolution based on down sampling parameter:
# Specify the resolution of the plot (change their value based on downsampling parameters)
res_x=20; #(you can choose any value)
res_y=20;
res_z=20;
Ex=getdata("monitor","Ex");
Ey=getdata("monitor","Ey");
Ez=getdata("monitor","Ez");
x=getdata("monitor","x");
y=getdata("monitor","y");
z=getdata("monitor","z");
# Choose a frequency point ( the first one )
Ex=pinch(Ex,4,1);
Ey=pinch(Ey,4,1);
Ez=pinch(Ez,4,1);
# Define uniform vectors
x2=linspace(x(1),x(length(x)),res_x);
y2=linspace(y(1),y(length(y)),res_y);
z2=linspace(z(1),z(length(z)),res_z);
xmesh = meshgrid3dx(x2,y2,z2);
ymesh = meshgrid3dy(x2,y2,z2);
zmesh = meshgrid3dz(x2,y2,z2);
# Interpolate fields on new uniform vectors
Ex=interp(Ex, x, y, z, x2, y2, z2);
Ey=interp(Ey, x, y, z, x2, y2, z2);
Ez=interp(Ez, x, y, z, x2, y2, z2);
E = rectilineardataset("E",x2,y2,z2);
E.addattribute("E",Ex,Ey,Ez);
vectorplot(E);
Vectorplot_test.fsp (274.3 KB)
Sorry that this is not very convenient, but hopefully will be of a help.
Thanks