GetDist Jupyter Notebook Plot Gallery

Demonstrates the types of plot you can make with GetDist and how to make them. You can also run this notebook online.


If you prefer to use one of the standard color series you can do that, using the matplotlib named colormaps


Using styles to change settings for consistent plot scripts

If you want to change several default settings, you can make a module containing a new plotter class, which defines its own settings and behaviour, and then use it as a style. A couple of sample styles are included: getdist.styles.tab10 and getdist.styles.planck. Using the same style in each script will then give consistent outputs without changing settings each time.

Getting consistent sizes for publication

By default, font and line sizes are scaled for small plots, which is often necessary if making figures with many subplots in. Setting parameters like settings.fontsizes, settings.axes_labelsize are specified at a reference axis size (defaul 3.5 inches); for smaller plots they are reduced. For publication you may wish to have constent font sizes between figures, and hence specify fixed sizes and use a fixed figure size.


Controlling analysis settings

The default kernel density estimation setting usually give good results, but note that contours can seem quite smooth even if the residual sampling noise is quite large. You can change the analysis settings from the default to visually inspect the stability of the result.


Further Reading

See the full documentation for further details and examples