Forest plot order by coords and not variables.
See original GitHub issueShort Description
Hello everyone! In my model I have to variables that I want to compare each of them has several coords. I would like to plot them with a forest plot. With this code:
pm.forestplot(my_model, varnames=['mu_o_c','mu_fo_c'], rope=(0,0), combined=True)
I get this:
But actually I would like them to be ordered as mu_o_c 0, mu_fo_c 0, mu_o_c 1, mu_fo_c 1 … and with different colors since mu_fo_c and mu_o_c are the two states I am trying to compare.
I have used pymc3 to generate the data. Let me know if there is anything I can tell you extra. Thank you very much for your time! Best, Sergio
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
forestplot: Advanced Forest Plot Using 'grid' Graphics
Description A forest plot that allows for multiple confidence intervals per row, custom fonts for each text element, custom confidence ...
Read more >plot_forest() should maintain the order of azdata #613
When using plot_forest the ordering of variable is not the same as the one in azdata. In my opinion order should be maintained...
Read more >How to adjust the ordering of labels in the default legend ...
I am plotting a forest plot in ggplot2 and ...
Read more >How to forestplot in arviz with only a subset of trace ...
I've been wanting to use the arviz.plot_forest() function to visualize a trace. However, the trace contains a number of variables, ...
Read more >arviz.plots.forestplot — ArviZ dev documentation
Source code for arviz.plots.forestplot. """Forest plot.""" from ..data import ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems like tight_layout+figsize+textsize seems to do the trick! Muchas gracias! 🙏
Not sure, maybe
plt.tight_layout
?