Skip to content
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

Plot unbroken lines for E and J fields #71

Open
santisoler opened this issue Nov 7, 2023 · 1 comment · May be fixed by #72
Open

Plot unbroken lines for E and J fields #71

santisoler opened this issue Nov 7, 2023 · 1 comment · May be fixed by #72

Comments

@santisoler
Copy link
Member

Currently some DC widgets plot broken lines for the E and J fields:

image

This plots could be misleading. Since lines density relates to the magnitude of the fields, having broken lines appearing and disappearing could lead to wrong interpretations of the values of the field in different regions. For example, in this image, the fields lines are less denser around the sources than in deeper regions.

We should pass broken_streamlines=False to matplotlib.pyplot.streamplot when plotting field lines.

This option was introduced in matplotlib 3.6, therefore the pinned version of matplotlib should be changed so we can make this change. Is there any reason why matplotlib is pinned to <3.5 on environment.yml? It was pinned in #45

@micmitch
Copy link
Contributor

micmitch commented Nov 7, 2023

Nice that they have added this functionality to streamplot!

@santisoler santisoler linked a pull request Nov 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants