[Top][All Lists]

[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
>>> 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?
> 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], ...





circle (0,0,5)

circle (4,1,6)
circle (-1,5,6)

Please adapt to your needs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]