flexcompute / tidy3d

Fast electromagnetic solver (FDTD) at scale.
https://docs.flexcompute.com/projects/tidy3d/en/latest/
GNU Lesser General Public License v2.1
179 stars 40 forks source link

Add interpolation option for `SimulationData.plot_field` method. #1952

Open FilipeFcp opened 1 week ago

FilipeFcp commented 1 week ago

I would suggest implementing a variable for interpolation in the SimulationData.plot_field method, so the user has an easy way to plot a smooth field profile.

Without interpolation:

image

With interpolation:

image

In the graph above, the .interp method for the Xarray field data object was used to increase the density of points from the original grid points to 1000.

small priority

tylerflex commented 1 week ago

Hi @FilipeFcp could you implement this when you get time? should be pretty straightforward, like the last one. thanks!