Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot density instead of contours in 2D plots #88

Open
mraveri opened this issue Dec 8, 2022 · 3 comments
Open

Plot density instead of contours in 2D plots #88

mraveri opened this issue Dec 8, 2022 · 3 comments

Comments

@mraveri
Copy link
Contributor

mraveri commented Dec 8, 2022

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!

@cmbant
Copy link
Owner

cmbant commented Dec 8, 2022

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.

@mraveri
Copy link
Contributor Author

mraveri commented Dec 8, 2022 via email

@cmbant
Copy link
Owner

cmbant commented Dec 8, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants