| 1 |
\documentclass[]{article} |
| 2 |
\usepackage{lmodern} |
| 3 |
\usepackage{authblk} |
| 4 |
\usepackage{amssymb,amsmath} |
| 5 |
\usepackage{ifxetex,ifluatex} |
| 6 |
\usepackage{fixltx2e} % provides \textsubscript |
| 7 |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
| 8 |
\usepackage[T1]{fontenc} |
| 9 |
\usepackage[utf8]{inputenc} |
| 10 |
\else % if luatex or xelatex |
| 11 |
\ifxetex |
| 12 |
\usepackage{mathspec} |
| 13 |
\else |
| 14 |
\usepackage{fontspec} |
| 15 |
\fi |
| 16 |
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} |
| 17 |
\fi |
| 18 |
% use upquote if available, for straight quotes in verbatim environments |
| 19 |
\IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
| 20 |
% use microtype if available |
| 21 |
\IfFileExists{microtype.sty}{% |
| 22 |
\usepackage{microtype} |
| 23 |
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts |
| 24 |
}{} |
| 25 |
\usepackage[margin=1in]{geometry} |
| 26 |
\usepackage{hyperref} |
| 27 |
\hypersetup{unicode=true, |
| 28 |
pdftitle={corner.py: Scatterplot matrices in Python}, |
| 29 |
pdfborder={0 0 0}, |
| 30 |
breaklinks=true} |
| 31 |
\urlstyle{same} % don't use monospace font for urls |
| 32 |
\usepackage{graphicx,grffile} |
| 33 |
\makeatletter |
| 34 |
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} |
| 35 |
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} |
| 36 |
\makeatother |
| 37 |
% Scale images if necessary, so that they will not overflow the page |
| 38 |
% margins by default, and it is still possible to overwrite the defaults |
| 39 |
% using explicit options in \includegraphics[width, height, ...]{} |
| 40 |
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} |
| 41 |
\IfFileExists{parskip.sty}{% |
| 42 |
\usepackage{parskip} |
| 43 |
}{% else |
| 44 |
\setlength{\parindent}{0pt} |
| 45 |
\setlength{\parskip}{6pt plus 2pt minus 1pt} |
| 46 |
} |
| 47 |
\setlength{\emergencystretch}{3em} % prevent overfull lines |
| 48 |
\providecommand{\tightlist}{% |
| 49 |
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
| 50 |
\setcounter{secnumdepth}{0} |
| 51 |
% Redefines (sub)paragraphs to behave more like sections |
| 52 |
\ifx\paragraph\undefined\else |
| 53 |
\let\oldparagraph\paragraph |
| 54 |
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} |
| 55 |
\fi |
| 56 |
\ifx\subparagraph\undefined\else |
| 57 |
\let\oldsubparagraph\subparagraph |
| 58 |
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} |
| 59 |
\fi |
| 60 |
|
| 61 |
\title{corner.py: Scatterplot matrices in Python} |
| 62 |
|
| 63 |
\author{Daniel Foreman-Mackey} |
| 64 |
\affil{Sagan Fellow, University of Washington} |
| 65 |
\date{26 May 2016} |
| 66 |
|
| 67 |
\begin{document} |
| 68 |
\maketitle |
| 69 |
|
| 70 |
\textbf{Paper DOI:} \url{http://dx.doi.org/10.21105/joss.00024}\\ |
| 71 |
\textbf{Software Repository:} \url{https://github.com/dfm/corner.py}\\ |
| 72 |
\textbf{Software Archive:} \url{http://dx.doi.org/10.5281/zenodo.53155}\\ |
| 73 |
|
| 74 |
\section{Summary}\label{summary} |
| 75 |
|
| 76 |
This Python module uses matplotlib (Hunter 2007) to visualize |
| 77 |
multidimensional samples using a scatterplot matrix. In these |
| 78 |
visualizations, each one- and two-dimensional projection of the sample |
| 79 |
is plotted to reveal covariances. \emph{corner} was originally conceived |
| 80 |
to display the results of Markov Chain Monte Carlo simulations and the |
| 81 |
defaults are chosen with this application in mind but it can be used for |
| 82 |
displaying many qualitatively different samples. |
| 83 |
|
| 84 |
Development of \emph{corner} happens on GitHub and any issues can be |
| 85 |
raised there (Foreman-Mackey 2016). \emph{corner} has been used |
| 86 |
extensively in the astronomical literature and it has occasionally been |
| 87 |
cited as \texttt{corner.py} or using its previous name |
| 88 |
\texttt{triangle.py}. The source code for \emph{corner} has been |
| 89 |
archived to Zenodo and it has the DOI (Zenodo Archive 2016) |
| 90 |
|
| 91 |
The following is a simple demonstration of a visualization made with |
| 92 |
\emph{corner}: |
| 93 |
|
| 94 |
-\includegraphics{corner.png} |
| 95 |
|
| 96 |
\section*{References}\label{references} |
| 97 |
\addcontentsline{toc}{section}{References} |
| 98 |
|
| 99 |
\hypertarget{refs}{} |
| 100 |
\hypertarget{ref-corner_github}{} |
| 101 |
Foreman-Mackey, Daniel. 2016. ``Corner.py on Github.'' |
| 102 |
\url{https://github.com/dfm/corner.py}. |
| 103 |
|
| 104 |
\hypertarget{ref-matplotlib}{} |
| 105 |
Hunter, John D. 2007. ``Matplotlib: A 2D Graphics Environment.'' |
| 106 |
\emph{Computing in Science and Engineering} 9 (3): 90--95. |
| 107 |
doi:\href{https://doi.org/10.1109/MCSE.2007.55}{10.1109/MCSE.2007.55}. |
| 108 |
|
| 109 |
\hypertarget{ref-corner_archive}{} |
| 110 |
Zenodo Archive. 2016. ``Corner.py: Scatterplot Matrices in Python.'' |
| 111 |
\url{http://dx.doi.org/10.5281/zenodo.53155}. |
| 112 |
doi:\href{https://doi.org/10.5281/zenodo.53155}{10.5281/zenodo.53155}. |
| 113 |
|
| 114 |
\end{document} |