-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Responses to WL reviewer comments #630
- Loading branch information
Showing
5 changed files
with
118 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ thisversion.tex | |
*-blx.bib | ||
*.brf | ||
*.run.xml | ||
*.ent | ||
|
||
## Build tool auxiliary files: | ||
*.fdb_latexmk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
from matplotlib.backends.backend_pdf import FigureCanvasPdf | ||
from matplotlib.patches import Ellipse | ||
|
||
# position angles | ||
thetas = [0.1, 0.4, 1.5] | ||
|
||
fig = plt.Figure(figsize=(6, 3)) | ||
ax1 = fig.add_subplot(121) | ||
ax2 = fig.add_subplot(122) | ||
|
||
length = 0.8 | ||
xbar = ybar = 0.0 | ||
colors = ['#377eb8', '#ff7f00', '#4daf4a'] | ||
for th, c in zip(thetas, colors): | ||
beta = 2*th # shear phase | ||
ax1.arrow(0.0, 0.0, length*np.cos(th), length*np.sin(th), width=0.02, head_width=0.02, length_includes_head=True, color=c) | ||
ax1.arrow(0.0, 0.0, -length*np.cos(th), -length*np.sin(th), width=0.02, head_width=0.02, length_includes_head=True, color=c) | ||
ax2.arrow(0.0, 0.0, length*np.cos(beta), length*np.sin(beta), width=0.02, head_width=0.1, length_includes_head=True, color=c) | ||
xbar += np.cos(beta) | ||
ybar += np.sin(beta) | ||
|
||
xbar /= len(thetas) | ||
ybar /= len(thetas) | ||
|
||
ax2.arrow(0.0, 0.0, length*xbar, length*ybar, width=0.02, head_width=0.1, color='k') | ||
|
||
for ax in [ax1, ax2]: | ||
ax.set_xlim(-1.2, 1.2) | ||
ax.set_ylim(-1.2, 1.2) | ||
ax.axhline(0.0, c='k', lw=0.5) | ||
ax.axvline(0.0, c='k', lw=0.5) | ||
ax.set_xticks([]) | ||
ax.set_yticks([]) | ||
ax.add_patch(Ellipse((0.0, 0.0), 2*length, 2*length, fill=False, ec='k')) | ||
|
||
ax1.set_title("Headless position angles") | ||
ax2.set_title("Shear phases") | ||
|
||
canvas = FigureCanvasPdf(fig) | ||
fig.set_tight_layout(True) | ||
canvas.print_figure("angularSpread.pdf", dpi=100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters