add waveform plot to tutorial
Added the following at the bottom of examples/tutorials/visualising_the_results.ipynb
:
#%% md
#### Best-Fit Time Domain Waveform plot
Some plots sepcific to compact binary coalescence parameter estimation results can
be created by re-loading the result as a `CBCResult`:
#%%
from bilby.gw.result import CBCResult
cbc_result = CBCResult.from_json("visualising_the_results/example_result.json")
cbc_result.plot_waveform_posterior()
plt.show()
#%% md
Again, notice that the plot is saved as a "waveform.png" in the output dir.
Should I clear output? ie:
jupyter nbconvert visualising_the_results.ipynb --to notebook --ClearOutputPreprocessor.enabled=True --output visualising_the_results.ipynb
Merge request reports
Activity
added Example/Tutorial label
- Resolved by Colm Talbot
This is a good idea. I would vote for clearing the output.
- Resolved by Moritz Huebner
While working on this, I noticed that if
n_samples
is passed toplot_waveform_posterior
then n samples from the top of the posterior data frame are used (the samples with the lowest LogL).Would it be better to use the n samples from the bottom of the data frame (the samples with the highest LogL)?
Should I make an issue about this, or am I understanding something wrong?
mentioned in issue #536 (closed)
changed milestone to %1.0.3
added Plotting/Visualisation label
mentioned in commit 77aa17aa