Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Python tool to make interactive Corner Plots based on XSPEC MCMC chains saved to FITS files.

NotificationsYou must be signed in to change notification settings

garciafederico/pyXspecCorner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Python tool to make interactiveCorner Plots based on XSPEC MCMC chains saved to FITS files.

screenshot tkXspecCorner.py

and/or

screenshot pyXspecCorner.py

Description:

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.

Usage:

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

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp