You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laying out text strings appropriately within given geometric regions is not a trivial task to solve, at least if the aim is to solve it in a manner which would be "generally useful", rather than limited to a couple of toy examples (which can be handled with some custom-crafted code like the one above anyway).
Consequently, I'm not sure I, personally, would be looking at this at the moment. I'm not against someone else trying to solve it, though. In this case I don't think the interface should be defined by a render_elements=True function parameter. What would actually be needed is a method of the form
def spread_texts(path_patch, texts):
...
You could then apply it as a kind of post-processing to replace the counts with "spread texts" or whatever else you'd need (the complete post-processing method could be added to the matplotlib_venn.utils package).
I know this issue is old, but you could use my matplotlib-venn-wordcloud to spread the text around in a form filling manner (that's why I wrote that little module to begin with). If that is too quirky, you could align the elements along the midline of each circle segment. The latter approach would only work for venn2 though (IIRC).
It would be excellent if
venn2
had an option to render Venn diagram regions with elements of the sets instead of the element count.which produces this
![image](https://user-images.githubusercontent.com/28271812/47729946-7a6bd780-dc37-11e8-8089-388aa1007dfd.png)
Could have an option like this:
which would instead produce this:
The text was updated successfully, but these errors were encountered: