Closed jdrudolph closed 10 years ago
Oh yes, the ugly corner-cases. Those are really hard to test and annoying to solve. The code has to be something like "if two circles intersect like that, then the regions are like that, however, if one circle is inside another, then the regions are instead like that, except for the case when .... etc etc", so I've been closing eyes on most of them so far.
But rants aside, as you brought it up, I tried to apply some band-aid here and there, so at least the case you mentioned should work better now. Do an easy_install --upgrade and try again. Not all the numbers are positioned perfectly in the new version, so if you need this particular image, you'll have to do some manual tuning, e.g.:
v = venn3([set([5,8]), set([2,3,4,5,6]), set([5,6,7,8,9])])
lbl = v.get_label_by_id('010')
(x, y) = lbl.get_position()
lbl.set_position((x+0.1, y+0.1))
I really enjoy using you library but for some of my plots I observed some weird behavior:
rough minmal example:
works fine producing:![circle_good](https://f.cloud.github.com/assets/2606663/2194563/b2050a2e-988d-11e3-9dcb-17c92b27ad47.png)
while removing one element like below leads to a broken plot
I am using
Python 2.7.3
andMatplotlib 1.3.1