Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
e62962d
Refactor plot_corner to Plotter class
eshelDror Jul 3, 2026
f32934a
Fix Plotter issue with rv data
eshelDror Jul 3, 2026
c78ce66
Fix Plotter issue with different bases
eshelDror Jul 3, 2026
e2ec5b2
Verify and assume Plotter parameters
eshelDror Jul 3, 2026
d6c6e15
Add option to channge Plotter params after initialization
eshelDror Jul 6, 2026
46e2518
Fix Plotter rv_time_series2
eshelDror Jul 8, 2026
b603ad8
Add default_cmap functionality
eshelDror Jul 8, 2026
d3725b7
Calculate rv time series on init
eshelDror Jul 8, 2026
84622c8
Add plot_residuals to Plotter
eshelDror Jul 8, 2026
0b946a4
Use precalculated variables in plot_orbits
eshelDror Jul 8, 2026
c7d5fd4
Fix precalculation error when no rv_time_series
eshelDror Jul 8, 2026
9bde3b3
Rename Plotter internal methods
eshelDror Jul 8, 2026
f05cb1e
Fix plotting using existing figure
eshelDror Jul 12, 2026
b92a862
Remove ==True/False idiom
eshelDror Jul 12, 2026
901ce5e
Fix issue with primary_instrument_name
eshelDror Jul 12, 2026
7891059
Subtract median rv gamma from insts instead of adding to post
eshelDror Jul 12, 2026
3b18b9f
Add gamma err and jitter to rv err
eshelDror Jul 12, 2026
75719f7
Add plot_propermotion to Plotter
eshelDror Jul 12, 2026
5538e3a
Add changeable time format for start and end
eshelDror Jul 14, 2026
0d80622
Add docstrings and fix seppa/radec issue
eshelDror Jul 14, 2026
10786af
Redirect depracated plotting to use Plotter
eshelDror Jul 15, 2026
c9527c6
Overplot priors on corner
eshelDror Jul 18, 2026
acfc2f8
Fix rv instrument plotting issues
eshelDror Jul 18, 2026
aa12379
Check prior can compute lnprob to prevent error
eshelDror Jul 18, 2026
acbc8ff
Uodate Plotting and Multiplanet tutorials
eshelDror Jul 19, 2026
f93492e
Update RV MCMC Tutorial
eshelDror Jul 19, 2026
ece1603
Normalize histogram rather than scaling priors when overplotting in c…
eshelDror Jul 23, 2026
f485eff
Address Plotter feedback
eshelDror Jul 28, 2026
1637c00
Update quick-start and rv-mcmc tutorials
eshelDror Jul 28, 2026
7032008
Update other tutorials
eshelDror Jul 30, 2026
c6b67ba
Some formatting and documentation
eshelDror Jul 30, 2026
dbcb102
Document helper functions
eshelDror Jul 30, 2026
eb7d596
Add minor and mirror ticks
eshelDror Jul 30, 2026
fefb43b
Minor improvements
eshelDror Jul 31, 2026
3f85107
Clean and add tutorials for plotter variables
eshelDror Aug 2, 2026
ba2e9c8
Merge remote-tracking branch 'upstream/main' into plot_refactor
eshelDror Aug 2, 2026
cd6968a
Discard brightness from compute_all_orbits
eshelDror Aug 2, 2026
b7a6e6f
Change LaTeX to unambigous \\
eshelDror Aug 2, 2026
3a5121c
Normalize GaussianPrior
eshelDror Aug 5, 2026
bfe041c
Simplify RV errorbars
eshelDror Aug 5, 2026
bfd2c85
Separate residual errors
eshelDror Aug 6, 2026
97caca2
Implement plotting of multiple planets
eshelDror Aug 11, 2026
7bdddc8
Plot multiplanet residuals
eshelDror Aug 11, 2026
7936111
Add option to not use cmap in plot_orbits
eshelDror Aug 11, 2026
0509a7b
Plot brightness
eshelDror Aug 12, 2026
1e16d62
Update documentation and tutorials for multiplanet
eshelDror Aug 13, 2026
fee66fd
Remove TODOs
eshelDror Aug 13, 2026
6b3d8d3
Add option for multiple colorbars
eshelDror Aug 17, 2026
a311466
Use normalized Gaussian Prior in test
eshelDror Aug 17, 2026
5cecfcd
Add plotting of primary and post_to_use
eshelDror Aug 21, 2026
5044ee9
Clear and update ObsPriors tutorial
eshelDror Aug 21, 2026
4526140
Fix to_standard_basis tutorial
eshelDror Aug 21, 2026
9e9e8fe
Plot correlated ra/dec errorbars
eshelDror Aug 21, 2026
103b443
Add object labels
eshelDror Aug 28, 2026
9187689
Use longest period if plotting primary
eshelDror Aug 28, 2026
bfa54f1
Use longest secondary period for primary, allow non-standard colorbar…
eshelDror Aug 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
354 changes: 58 additions & 296 deletions docs/tutorials/Changing_bases_tutorial.ipynb

Large diffs are not rendered by default.

85 changes: 16 additions & 69 deletions docs/tutorials/HGCA_tutorial.ipynb

Large diffs are not rendered by default.

302,958 changes: 15 additions & 302,943 deletions docs/tutorials/Hipparcos_IAD.ipynb

Large diffs are not rendered by default.

195 changes: 26 additions & 169 deletions docs/tutorials/MCMC_tutorial.ipynb

Large diffs are not rendered by default.

403 changes: 242 additions & 161 deletions docs/tutorials/Multiplanet_Tutorial.ipynb

Large diffs are not rendered by default.

302 changes: 55 additions & 247 deletions docs/tutorials/OFTI_tutorial.ipynb

Large diffs are not rendered by default.

279 changes: 19 additions & 260 deletions docs/tutorials/ONeil-ObsPriors.ipynb

Large diffs are not rendered by default.

947 changes: 481 additions & 466 deletions docs/tutorials/Plotting_tutorial.ipynb

Large diffs are not rendered by default.

52,079 changes: 32 additions & 52,047 deletions docs/tutorials/Quick-Start.ipynb

Large diffs are not rendered by default.

461 changes: 126 additions & 335 deletions docs/tutorials/RV_MCMC_Tutorial.ipynb

Large diffs are not rendered by default.

3,419 changes: 1,914 additions & 1,505 deletions orbitize/plot.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion orbitize/priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def __init__(self, mu, sigma, no_negatives=True):
self.mu = mu
self.sigma = sigma
self.no_negatives = no_negatives
self.lnnorm = -(np.log(sigma)+0.5*np.log(2*np.pi))

def __repr__(self):
return "Gaussian"
Expand Down Expand Up @@ -330,7 +331,7 @@ def compute_lnprob(self, element_array):
corresponding to the probability of drawing each of the numbers
in the input `element_array`.
"""
lnprob = -0.5 * ((element_array - self.mu) / self.sigma) ** 2
lnprob = -0.5 * ((element_array - self.mu) / self.sigma) ** 2 + self.lnnorm

if self.no_negatives:
bad_samples = np.where(element_array < 0)[0]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_priors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
[
0.0,
0.0,
nm(1000.0, 1.0).pdf(1000.0) * np.sqrt(2 * np.pi),
nm(1000.0, 1.0).pdf(999.0) * np.sqrt(2 * np.pi),
nm(1000.0, 1.0).pdf(1000.0),
nm(1000.0, 1.0).pdf(999.0),
]
),
priors.LogUniformPrior: np.array([0.0, 0.0, 1.0, 2.0 / 3.0, 0.5, 0.0]) / np.log(2),
Expand Down
Loading