[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Venn diagrams
From: |
Kai Torben Ohlhus |
Subject: |
Re: Venn diagrams |
Date: |
Sat, 11 Jan 2020 14:33:35 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 |
On 1/11/20 9:31 AM, Francesco Potortì wrote:
> Francesco Potortì:
>>> I want to automatically draw three-circle Venn diagrams, and I have
>>> stumpled upon
>>> https://it.mathworks.com/matlabcentral/fileexchange/22282-venn
>>>
>>> which seems to be the right thing. Unfortunately, it gives errors:
>>>
>>> octave> venn([3852 3766 1681 6932 5359 5184 39])
>>> error: orderfields: structs must have same fields up to order
>>> error: cat: field names mismatch in concatenating structs
>>> error: called from
>>> venn>parseArgsIn at line 791 column 18
>>> venn at line 161 column 56
>>>
>>> Before trying to debug it, anyone else has tried it? Or does anyone
>>> have suggestions for alteratives?
I tried to debug it, but there is no hope without rewriting the entire
function. The error observed by you is easily fixed, but there are many
nested functions and handles to those in use. Thus there is no worth in
going too deep into it without total desperation and some spare time, I
am afraid.
>
> Doug Stewart:
>> Did you see this?
>> https://octave.1599824.n4.nabble.com/Generate-venn-diagram-from-data-td4683112.html
>
> Yes, thanks, but it only creates a two-circle diagram.
>
Alternatively, I asked Google [1,2] and got this to work:
_____________________________________________________________
1; % script
function h = circle(x,y,r)
d = r*2;
px = x-r;
py = y-r;
h = rectangle('Position',[px py d d],'Curvature',[1,1], ...
'FaceColor',rand(1,3),'EdgeColor','b',...
'LineWidth',3,'facealpha',0.5);
daspect([1,1,1])
end
circle (0,0,5)
circle (4,1,6)
circle (-1,5,6)
_____________________________________________________________
Please adapt to your needs.
[1]:
https://www.mathworks.com/matlabcentral/answers/98665-how-do-i-plot-a-circle-with-a-given-radius-and-center#answer_108013
[2]:
https://stackoverflow.com/questions/12072412/setting-transparancy-of-surface-plot-on-octave/24173227
HTH,
Kai
- Venn diagrams, Francesco Potortì, 2020/01/10
- Re: Venn diagrams, Doug Stewart, 2020/01/10
- Re: Venn diagrams, Francesco Potortì, 2020/01/10
- Re: Venn diagrams,
Kai Torben Ohlhus <=
- Re: Venn diagrams, Sebastian Schöps, 2020/01/14
- Re: Venn diagrams, Francesco Potortì, 2020/01/15
- Re: Venn diagrams, Francesco Potortì, 2020/01/20
- Re: Venn diagrams, Francesco Potortì, 2020/01/14
- Re: Venn diagrams, Francesco Potortì, 2020/01/19
- Re: Venn diagrams, Kai Torben Ohlhus, 2020/01/22