- Notifications
You must be signed in to change notification settings - Fork5
garciafederico/pyXspecCorner
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A Python tool to make interactiveCorner Plots based on XSPEC MCMC chains saved to FITS files.
and/or
The program will open twomatplotlib
windows, one with a corner plot and another one with a list ofCheckButtons
andTextBoxes
to interactively select the parameters to be plotted in the corner plot, and edit the individual titles/labels shown.
The three lastCheckButtons
in the list allow to turn on and off the smoothed 2Dcontours
in theCorner Plot, and to play withTitles
andXYlabels
in the plot.
The program also displays a summary with the main statistics of the available parameters in the chain file using the samples selected by the user.
In thetkinter
version, atk
window is opened withbuttons
andtextboxes
for every parameter, amatplotlib
plot embedded, and a button to Update the plot when needed.
Basic: The user must provide thepath/name
to the MCMC XSPEC chain FITS file.
python pyXspecCorner.py 'MCMC_chain.fits'
or alternatively
python tkXspecCorner.py 'MCMC_chain.fits'
to get a faster version based ontkinter
.
Optional: The user can also provide the burn in and/or number of samples to use for plotting purposes, and plotting parameters like the number of bins, number format, and label padding
python pyXspecCorner.py 'MCMC_chain.fits' --burn 300 --samples 1000 --bins 50 --format .3f --labelpad 0.1
Usage help: The user can get additionaldescription/help
using the argparse helper.
python pyXspecCorner.py -h
About
A Python tool to make interactive Corner Plots based on XSPEC MCMC chains saved to FITS files.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Contributors2
Uh oh!
There was an error while loading.Please reload this page.