-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Matplotlib-based plotting #13
Comments
Maybe remove the entire PIL-based (now Pillow) plotting libraries, which seem to be generating their own plotting interfaces etc. Instead just use MatPlotLib which is installed with every Scientific Python package. |
Notes on CAMFR's field parameters:
In a Section (2D X/Y cross-section), x is the horizontal axis, and y is the vertical axis with z again the direction of propagation. For a Section:
In a Slab (1D cross-section), the dielectric layers are stacked along the x direction, and z is the direction of propagation. The slab is extended infinitely along y (or really it's only a 2D space, y doesn't exist). So for a Slab:
|
Added MPL-based mode plotting for Section objects, in eed4cfc.
One can optionally include more modes or fields like so (
Allowing one to save the figure or manipulate axes etc.
Still need to add to Slab or other objects. What other objects need this? |
I believe the new matplotlib-based I think the 2D MPL one is probably a lot better while providing the same info as the old Pillow one, but should check this to make sure. |
Should re-use camfr_PIL.py code, which already has functions for returning field values etc. Also, make function to parse string args for |
bottom of
|
From @demisjohn on March 7, 2018 14:6
Mode solvers should use MatPlotLib to plot.
Should generate nice colored plots, like this:
Copied from original issue: #9
The text was updated successfully, but these errors were encountered: