Be sorry that I cannot provide the coordinates of all points, or I can draw the picture. How can I make this figure? Thanks for any help!
[Tex/LaTex] How to draw a circle with a triangle in TikZ
circlesdiagramsnodestikz-pgf
Related Solutions
For starting:
\documentclass[border=3mm,tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
Circ/.style={draw,shape=circle,minimum size=12mm, node contents={}}
]
\node (C1) [Circ];
%
\node (C2) [Circ,right=11mm of C1];
\draw[blue] (C2.south west) -- (C2.north east);
\fill[black] (C2.south west) circle (2pt)
(C2.north east) circle (2pt);
%
\node (C3) [Circ,below=11mm of C1];
\draw[blue] (C3.north west) -- (C3.north east);
\draw[red] (C3.south west) -- (C3.south east);
\fill[black] (C3.north west) circle (2pt)
(C3.south west) circle (2pt)
(C3.south east) circle (2pt)
(C3.north east) circle (2pt);
%
\node (C4) [Circ,below=11mm of C2];
\draw[blue] (C4.north west) -- (C4.south west);
\draw[red] (C4.north east) -- (C4.south east);
\fill[black] (C4.north west) circle (2pt)
(C4.south west) circle (2pt)
(C4.south east) circle (2pt)
(C4.north east) circle (2pt);
\end{tikzpicture}
\end{document}
For learn TikZ I suggest to read TikZ (really huge) manual. There are good introductions and overview (chapter: TikZ ist kein Zeichenprogram), which is beginning more than enough.
Clipping can helping here a lot, a starting point:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
radius=10mm,
]
\begin{scope}
\clip (0, 0) circle;
\fill[red] (0, 0) circle;
\fill[red!50!blue, overlay] (13mm, 0) circle;
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
radius=10mm,
]
\begin{scope}[even odd rule]
\clip[overlay]
(-11mm, -11mm) rectangle (11mm, 11mm)
(13mm, 0) circle;
\fill[red] (0, 0) circle;
\end{scope}
\begin{scope}[xshift=4mm]
\clip (0, 0) circle;
\clip (13mm, 0) circle;
\fill[red!50!blue] (0, 0) circle;
\end{scope}
\begin{scope}[xshift=8mm, even odd rule]
\clip[overlay]
(13mm - 11mm, -11mm) rectangle (13mm + 11mm, 11mm)
(0, 0) circle;
\fill[blue] (13mm, 0) circle;
\end{scope}
\end{tikzpicture}
\end{document}
Using two circles for clipping for the left or right side of the previous drawing will not work:
\begin{scope}[even odd rule]
\clip (0, 0) circle[]
(13mm, 0) circle;
\fill[red] (0, 0) circle;
\end{scope}
The problem is the border of the first circle in the area of the second circle. There, the circle is drawn with a faint line. The problem is worked around by using a larger area for the first circle.
With shading
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
radius=10mm,
]
\begin{scope}[even odd rule]
\clip[overlay]
(-11mm, -11mm) rectangle (11mm, 11mm)
(13mm, 0) circle[];
;
\fill[shading=ball, ball color=red] (0, 0) circle;
\end{scope}
\begin{scope}[xshift=4mm]
\clip (0, 0) circle;
\clip (13mm, 0) circle;
\fill[shading=ball, ball color=red!50!blue] (0, 0) circle;
\end{scope}
\begin{scope}[xshift=8mm, even odd rule]
\clip[overlay]
(13mm - 11mm, -11mm) rectangle (13mm + 11mm, 11mm)
(0, 0) circle;
\fill[shading=ball, ball color=blue] (13mm, 0) circle;
\end{scope}
\end{tikzpicture}
\end{document}
Best Answer
In this case it is pretty simple to use the
calc
andintersections
library: