edmundsj / rcwa

Rigorous Coupled Wave Analysis for the calculation of Photonic Crystal R/T spectra
MIT License
93 stars 29 forks source link

Add plotting/pandas functionality for single-var and multi-var sweeps #38

Open edmundsj opened 2 years ago

edmundsj commented 2 years ago

Currently, plotting only works vs. wavelength, it would be nice to expand this to any single-variable or multi-variable sweep. Integrating heat map plotting for 2d sweeps. This would be enabled by the results being convertible into a pandas array or something of the like.

turning the results dictionary into a Results object and then adding a plot() method to that seems like the most elegant way to do this.

edmundsj commented 2 years ago

Single-variable sweeps can now be plotted easily with the Results.plot() method. as of a9f9e59e21a6d0c50cf836a6ede5a4d79823018d, and the results are available as simple arrays.