Skip to content

updated plotEllipse simulation#91

Open
camFoltz wants to merge 15 commits intomainfrom
cameron_Simulations
Open

updated plotEllipse simulation#91
camFoltz wants to merge 15 commits intomainfrom
cameron_Simulations

Conversation

@camFoltz
Copy link
Copy Markdown

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
Copy Markdown
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.

Comment thread simulations/plotting.py Outdated
plt.ylim(-1, 1)


def plotEllipse2(S1, S2, S3, S4, size=5, axes=None):
Copy link
Copy Markdown
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.

Comment thread simulations/plotting.py Outdated
arrowprops=dict(arrowstyle="->", color=color),
size=size)

Stokes = np.array([S1,S2,S3,S4])
Copy link
Copy Markdown
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