PhilTeX Forums » Using LaTeX » Packages, fonts, and customization
Venn Diagram and Shading Overlapping Areas
(5 posts)-
I have been trying to draw Venn Diagrams, and I can get circles and text in the diagrams just fine. I have even worked on tinkering with setting the length as something other than the standard 1 pt for bigger diagrams and circles. But, I don't know how to make the relevant areas become shaded? I also want to rotate the 'times x' on one of my lines, but that's a lesser issue.
Here is one simple example I have made:
\begin{picture}(0,0.0)\put(0,0){\circle{40}}\put(25,0){\circle{40}}\put(25,0){$\times$}\put(12.5,-25){\circle{40}}\put(-3,-12.){$\times$}\put(100,0){\circle{40}}\put(125,0){\circle{40}}\end{picture}Suggestions on shading or the project in general?
Posted 1 year ago # -
This isn't easy to do. I'll play around with this problem when I have some free time, but in the meantime, my suggestion would be to forgo the picture environment and use a more complicated graphics package like pstricks, pgf/tikz. Or use metapost, which has a venn package.
Some examples of Venn diagrams in PGF/TikZ can be found here.
The PS Tricks also has some examples in the section on clipping.
Posted 1 year ago # -
I think this would be easy enough with TikZ if you were familiar with TikZ: it has quite a steep learning curve.
The texample link Kevin posted shows you how it could be done.
Posted 1 year ago # -
A bit late, but this post on the TeX StackExchange site looks enormously helpful if you want to do Venn diagrams in LaTeX.
Posted 1 year ago #
Reply
You must log in to post.