cmbant/getdist

Plot density instead of contours in 2D plots

Closed this issue · 3 comments

Is it possible to plot density instead of contours in 2D plots?
Also, is it possible to add 1D "contours" (i.e. confidence intervals) to 1D plots as well?

Happy to open a PR implementing this if not!

You can use the shaded option to colour by the density. It does also plot the contours, but I guess you could make them invisible.
title_limit will print the confidence limit over each plot, but no specific option to add lines at the limits.

Currently, you can plot multiple contours with shaded, but only the first is shaded (all show contour lines). I would have thought multiple shadings in different colours would often be very hard to see/interpret when they overlap?

Would have to think about how any new argument names interact/conflict with those also for higher level triangle_plot etc.

shaded currently plots the density or mean likelihood, depending on the global setting, so not always a density.

For 1D, limit_markers or something might be more consistent with current terminology ("marker" is used for vertical lines at a value)