In plot_posterior: showing priors for evolution calculations and enabling easy overplotting of results #126
Labels
implementation: intermediate
Some time investment required to implement
priority: medium
Medium priority
type: bug
Something isn't working
type: feature
New feature or request
Hello Tomas,
Thanks again for all the improvements you have been making lately!
About
plot_posterior()
used with results fromFitEvolution
:Should
species
ignore the flagsinc_luminosity
andinc_mass
since the luminosity and mass are plotted by default? Activating the flags gives two rows and two columns with luminosity and mass (duplicating what was already included). Or just leave it up to the user to use his head 😉.Currently,
show_priors
"does not work" in the sense that it does not show the Gaußian priors on the mass, for example. The documentation reveals that it is designed to work withnormal_prior
ofFitModel
orsetup_retrieval
only, but of course it would be nice to extend it to here.When overplotting results from runs with two families of evolution curves, I need many lines of code to overplot results: actually to plot them, to weight them by the relative number of samples, then to add by hand a legend (which I am not really able to position exactly easily in general), and I do not have the derived values printed on top of the posteriors for both sets of models. This is an almost complete sketch of what I have:
Oof! that was many lines… (Thanks to @dfm at dfm/corner.py#82 (comment) and @kponder at dfm/corner.py#63 (comment) for pieces of this.)
That would be even more Handarbeit, I fear.
It feels as though the last two points are the kind of functionality which
species
likes to offer to users: just give the tag, a colour, a name, and voilà!, out comes a beautiful plot with the comparison. There have been several other papers recently doing this and it could be a good addition tospecies
!Thanks,
Gabriel
The text was updated successfully, but these errors were encountered: