# Tag Info

8

You may use \pgfextra{\xdef\Nb{\t}} or \pgfextra{\global\let\Nb\t}: \documentclass[tikz]{standalone} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \clip (-2,-2) rectangle (2,2); \draw [name path=curve 1] (-2,-1) .. controls (8,-1) and (-8,1) .. (2,1); \draw [name path=curve 2] (-1,-2) .. controls (-1,8) and (1,-8) .. (1,2); ...

3

I'm not sure if these are the arcs you wanted filled. I assumed that there was a reason for drawing a line from (i-2) to (i-4). \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,fpu,intersections} \tikzset{small dot/.style={fill=black,circle,scale=0.3},} \newlength{\cx} \newlength{\cy} \newcommand{\myangle}[2]{% #1 = coordinate name, #2 ...

5

Like this? I used \clip inside a scope \documentclass[a4paper]{article} \usepackage[marginparsep=3pt, top=2cm, bottom=1.5cm, left=3cm, right=1.5cm]{geometry} \usepackage{tikz} \usetikzlibrary{calc,intersections} \tikzset{small dot/.style={fill=black,circle,scale=0.3},} \begin{document} \begin{tikzpicture} % drawed just for explanation ...

3

A compact solution without calc based on default options. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=5] \draw[fill=red] (0,0) -- coordinate (E0)(1,0) -- coordinate (E1)(0,1) -- coordinate (E2) cycle ; \draw[fill=blue] ...

5

nodes are not geometric points but occupy space even if they don't have content. This is because they have inner sep and outer separations. When you artie \draw[fill=blue] (E0)--(E1)--(E2)--cycle ; you are not giving from which point of node the lines should be drawn as no anchors are specified in the above line of code. Please note that a coordinate is a ...

4

Define node's as coordinate: \documentclass[a4paper]{article} \usepackage[marginparsep=3pt, top=2cm, bottom=1.5cm, left=3cm, right=1.5cm]{geometry} \usepackage{tikz} \usetikzlibrary{calc,intersections} %\tikzset{small dot/.style={fill=black,circle,scale=0.3},} \begin{document} \begin{tikzpicture} \coordinate (A0) at (0,0) ; \coordinate (A1) at (1,0) ; ...

4

Something like this? \documentclass[tikz,border=0.125cm]{standalone} \begin{document} \begin{tikzpicture} % Create random(ish) points \foreach \i in {1,...,26} \fill [opacity=0.5] (360/26*\i:1+rnd*1) circle [radius=.025] coordinate (mark-\i); % Join them up \fill [opacity=0.5,blue] (mark-1) \foreach \i in {2,...,26}{ -- (mark-\i) } -- cycle; ...

Top 50 recent answers are included