ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Venn diagram
@ 2006-01-20  5:08 David Arnold
  2006-01-20  5:49 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: David Arnold @ 2006-01-20  5:08 UTC (permalink / raw)


All,

I have:

\startMPpage   %figure library name: intersection

   %initialize scale
   numeric u; 10u=3in;

   %ellipses
   path A, B;
   A:=fullcircle xyscaled (4u,3u);
   B:=A shifted (2u,0);
   draw A withcolor red;
   label.ulft(btex $A$ etex, point 3 of A) withcolor red;
   draw B withcolor blue;
   label.urt(btex $B$ etex, point 1 of B) withcolor blue;

   %bounding box
   draw bbox currentpicture enlarged (0.5u,0.5u);

\stopMPpage

I need an easy way of shading these areas:

1. A intersect B
2. A union B
3. A intersect (complement of B)
4. (complement of A) intersect B

Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-20 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20  5:08 Venn diagram David Arnold
2006-01-20  5:49 ` Aditya Mahajan
2006-01-20 18:22   ` Mojca Miklavec
2006-01-20 20:23     ` Hans Hagen
2006-01-20 23:33       ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).