Feature request/clarification: Adding text via objects interface
Hi, Is there currently a way to add text to an objects interface that will line up with a plot? For example, if I have this plot:
g = ( so.Plot( x="age", y="overall_connectance", color="age_map", data=within_nulls ) .add(so.Dot(alpha=0.2, pointsize=2), so.Jitter(), so.Dodge()) .add(so.Dot(marker="*", pointsize=8), so.Dodge(), data=network_obs) .label( x="Carcass Years Post-Mortem", y="Overall Network Connectance", color="", ) .scale(color=so.Nominal(order=["Off", "On"])) .theme(theme) ) g.show()
I would love to be able to add p-values via a text object, something like:
g = ( so.Plot( x="age", y="overall_connectance", color="age_map", data=within_nulls ) .add(so.Dot(alpha=0.2, pointsize=2), so.Jitter(), so.Dodge()) .add(so.Dot(marker="*", pointsize=8), so.Dodge(), data=network_obs) .add(so.Text(color='k'), y="yloc", string="pvalue", so.Dodge(), data=pvals) .label( x="Carcass Years Post-Mortem", y="Overall Network Connectance", color="", ) .scale(color=so.Nominal(order=["Off", "On"])) .theme(theme) ) g.show()
Source: mwaskom/seaborn