Quantcast
Channel: How can I fill a tikzpicture "fill" with a pattern? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

How can I fill a tikzpicture "fill" with a pattern?

$
0
0

I'm using the following to generate a Venn diagram, per the example here:

\documentclass{book}\usepackage{pgfplots,tikz}\usetikzlibrary{patterns}\begin{document}\begin{center}  \begin{tikzpicture}    \begin{scope}[blend group=soft light]      \fill[blue!30!white]  (135:1.2) circle (2);      \fill[red!30!white]   ( 45:1.2) circle (2);      \fill[gray!30!white]  (-90:1.2) circle (2);    \end{scope}    \node at (135:2)  {1};    \node at ( 45:2)  {2};    \node at (-90:2)  {3};    \node             {6};  \end{tikzpicture}\end{center}\end{document}

However, instead of blue, red and gray I would like to use pattern fills like crosshatch or dots, per the tikzpgf manual, page 217. When I try swapping the name of the color in the fill with the name of the pattern, the diagram no longer compiles. What gives?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images