arviz-devs / arviz-plots

ArviZ modular plotting
https://arviz-plots.readthedocs.io
Apache License 2.0
2 stars 1 forks source link

Omit/remove visual elements from plots #37

Closed OriolAbril closed 4 months ago

OriolAbril commented 5 months ago

We have plot_kwargs to customize any visual element that is added to the plot. But there is currently no way to avoid any of the calls to .map, they can only be customized. Should it be possible to do so?

I lean towards yes, in which case we'd need to define the API for doing so. The first idea that comes to mind is using plot_kwargs={"credible_interval": False} instead of having the dict of keyword parameters for credible interval there (can't have both things either so kind of makes sense). What do we think? Other ideas? It would require modifying how we handle the kwargs, but again, anything that makes the calls to .map for the different elements will require modifiying the existing plots.

aloctavodia commented 4 months ago

This seems like a reasonable and intuitive API to me.