Skip to content

Commit

Permalink
Merge pull request #178 from mpasson/main
Browse files Browse the repository at this point in the history
Update Mode.plot_component
  • Loading branch information
HelgeGehring authored Oct 16, 2024
2 parents 5313e29 + f52ff33 commit 3553585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion femwell/maxwell/waveguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def plot_component(

if component == "x" or component == "y":
plot_basis = mfield_t_basis.with_element(ElementVector(ElementDG(ElementTriP1())))
mfield_xy = plot_basis.project(mfield_t_basis.interpolate(conv_func(mfield_t)))
mfield_xy = plot_basis.project(conv_func(mfield_t_basis.interpolate(mfield_t)))
(mfield_x, mfield_x_basis), (mfield_y, mfield_y_basis) = plot_basis.split(mfield_xy)
if component == "x":
mfield_x_basis.plot(mfield_x, ax=ax, shading="gouraud")
Expand Down

0 comments on commit 3553585

Please sign in to comment.