Skip to content

Commit

Permalink
Merge pull request #51 from wbalmer/dev-wb
Browse files Browse the repository at this point in the history
Swap ra axes limits on plots, update tutorial notebook
  • Loading branch information
wbalmer authored Jan 7, 2024
2 parents b75b1dc + 5067ce8 commit 3bab984
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 35 deletions.
5 changes: 2 additions & 3 deletions backtracks/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ def trackplot(
ecolor='tomato', linestyle="none",
marker='o', ms=5., mew=1.5, mec='tomato')

axs['A'].invert_xaxis()
axs['A'].axis('equal')
axs['A'].set_xlabel("Delta RA (mas)")
axs['A'].set_ylabel("Delta DEC (mas)")
Expand Down Expand Up @@ -403,6 +402,7 @@ def neighborhood(backtracks, fileprefix='./', filepost='.pdf'):
fig = corner.corner(nearby_array[~nan_idx, ],
truths=truths,
truth_color='cornflowerblue',
labels=["pmra (mas/yr)", "pmdec (mas/yr)", "parallax (mas)"],
smooth=1,
smooth_1d=1,
quantiles=[0.003, 0.997],
Expand Down Expand Up @@ -451,7 +451,7 @@ def stationtrackplot(
# Epochs for the background tracks

plot_epochs = ref_epoch + np.arange(-days_backward, days_forward, step_size)
plot_epochs_tt=utc2tt(plot_epochs)
plot_epochs_tt = utc2tt(plot_epochs)
# Create astropy times for observations and background model

plot_times = Time(plot_epochs, format='jd')
Expand Down Expand Up @@ -559,7 +559,6 @@ def stationtrackplot(
ecolor='tomato', linestyle="none",
marker='o', ms=5., mew=1.5, mec='tomato')

axs['A'].invert_xaxis()
axs['A'].axis('equal')
axs['A'].set_xlabel("Delta RA (mas)")
axs['A'].set_ylabel("Delta DEC (mas)")
Expand Down
132 changes: 100 additions & 32 deletions docs/tutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit 3bab984

Please sign in to comment.