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

updated plotEllipse simulation #91

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

updated plotEllipse simulation #91

wants to merge 15 commits into from

Conversation

camFoltz
Copy link

Added second ellipse plotting function in plotting.py that takes in parameters of the stokes parameters. Fixed issue with interaction simulation in test_plotEllipse.ipynb and renamed to plotEllipse.ipynb

Copy link
Member

@mattersoflight mattersoflight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on the first PR @camFoltz! See the comments below.

plt.ylim(-1, 1)


def plotEllipse2(S1, S2, S3, S4, size=5, axes=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def plotEllipse2(S1, S2, S3, S4, size=5, axes=None):
def plotEllipseStokes(S0, S1, S2, S3, size=5, axes=None):
  • Notebook sets S0 to integer and the other three Stokes parameters to float. They are all float. The maximum value of S1, S2, S3 can at most be S0, since S0 represents total intensity of light.

arrowprops=dict(arrowstyle="->", color=color),
size=size)

Stokes = np.array([S1,S2,S3,S4])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Stokes = np.array([S1,S2,S3,S4])
Stokes = np.array([S0,S1,S2,S3])

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 this pull request may close these issues.

2 participants