Skip to content

Commit

Permalink
fix: wrong dimensions in subplots
Browse files Browse the repository at this point in the history
Co-authored-by: Helge Gehring <[email protected]>
  • Loading branch information
lucasgrjn and HelgeGehring authored Mar 4, 2024
1 parent a89f6f3 commit fc38680
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 @@ -382,7 +382,7 @@ def show(self, field: Literal["E", "H"] | NDArray, **kwargs):
title = kwargs.get("title", "E")

if plot_vectors is True:
rc = (2, 1) if direction != "x" else (1, 3)
rc = (2, 1) if direction != "x" else (1, 2)
fig, axs = plt.subplots(*rc, subplot_kw=dict(aspect=1))

self.plot_component(field, "t", part, boundaries, colorbar, axs[0])
Expand Down

0 comments on commit fc38680

Please sign in to comment.