We’re rewarding the question askers & reputations are being recalculated! Read more.
7

Here is a proposal. It is slightly nontrivial because rnd always gets evaluated new, so we need to store the coordinates where the arrows end and draw smooth curves through them. This is somewhat more efforts when one uses \pgflowlevelsynccm. \documentclass[tikz,border=3.14mm]{standalone} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{70}{20}...


5

The style definition is an option of tikzpicture environment, you should not put two optional parameters [...] [...] in your environment but only one with styles separated by commas. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[karl/.style ={help lines,color=blue!50}, scheme/.style ={draw, rounded corners}] \filldraw[...


4

As for your points: You can make this scope a pic. This addresses also point 4. You can use colored tokens={black!50}. The manual shifts are unnecessary if you add the distance in the positioning syntax, e.g. right=44mm of make withdraw. One very convenient way to repeat things is to use pics. And after you pointed your finger on it: the arrows pointing to ...


4

You can use the node option font: \documentclass[tikz,border=1cm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[>=latex,line cap=round,line join=round,scale=2] \coordinate (A) at (0,0,0); \draw ($(A)+(0,2,4)$) circle [radius=2] node[font=\Huge] {$T_1$}; \draw ($(A)+(0,-0.5,4)$) circle [radius=2] node[font=\Huge] {$T_2$}; ...


1

The answer to the question How can one remove the arrows from an edge? is Add - to the options of the edge/style. So I added a - to the connected style to obtain \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric,arrows.meta} \tikzset{ auto,node distance =1 cm and 1 cm,semithick, state/.style ={ellipse, draw, ...


1

I would write your MWE as follows: \documentclass[tikz]{standalone} \usetikzlibrary{arrows.meta, shapes} \tikzset{ semithick, > = Latex, state/.style = {ellipse, draw, minimum width = 5mm}, bidirected/.style = {<->, dashed}, % not used in this MWE connected/.style = {dashed}, } \begin{document} \...


1

If you really want to use tikz and not forest to draw this decision tree, you could use \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{shapes.geometric,positioning} \begin{document} \begin{tikzpicture}[% decision/.style={diamond,draw, text width=4.5em, text badly centered, inner sep=1pt}, io/.style={trapezium, trapezium left angle=70, ...


1

Note that I do not claim that this is a realistic representation of the power of the field emitted by an antenna. This is just to say that you can do parametric plots with tikz-pgf, with which this question is tagged. \documentclass[tikz,border=3mm]{standalone} \begin{document} \begin{tikzpicture} \draw plot[variable=\t,domain=0:360,smooth,samples=51] (...


1

Set xticklabels like this: xtick={0,10,20,...,100}, xticklabels={0,10,20,...,90,100+}, \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=0.92] \begin{axis}[ xmax=100,xmin=0, ymin=0,ymax=1, xlabel=\emph{x axis},ylabel=\emph{y axis}, xtick={0,10,20,...,100}, xticklabels={0,10,20,......


1

Just fill the rectangle with required color \fill[orange] (0,0) rectangle (4,4); before other fill and draw commands. I have modified the code to make it minimal. \documentclass{scrbook} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture} \draw[fill=orange] (0,0) rectangle (4,4); \draw[fill=blue!20] (0,0) -- (...


1

In this case it is very easy. You already have all the paths, so you can say \draw[fill=red!20] (2,2) to[out=30,in=180] (4,3) |- (3,4) to[out=270,in=60] (2,2); As you see, you only need to swap the roles of in and out in the reversed path. \documentclass[headsepline,BCOR=10mm,11pt,twoside,openright,cleardoublepage=empty,bibliography=totoc,numbers=...


1

Yes, of course. The first step is to define styles for the nodes and for the labels, e.g. \documentclass[12pt,ngerman]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=2, bullet/.style={circle, inner sep=1pt, draw=blue, fill=white, fill=orange}, every label/.style={label distance=.1cm, align=left, rectangle, draw=blue!50!black!...


1

Not super efficient, but a start ... \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric,arrows,positioning} \begin{document} \begin{tikzpicture}[node distance =0.8cm, auto] % Define block styles \tikzset{ block/.style={draw, text width=15em, text centered, rounded corners, minimum height=4em}, bblock/....


1

Like this? With use of tikz libraries chains and its macro join I significantly shorten your code: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, chains, positioning, shapes.geometric} \makeatletter \tikzset{suspend join/.code={\def\tikz@after@path{}}} \makeatother \begin{document} ...


1

Schrödinger's cat was right. I should be using coordinates instead of nodes for the internal nodes of the tree. This is my preferred solution over AboAmmar's ++ syntax since I want to save the coordinate of the internal node for use later on.


Only top voted, non community-wiki answers of a minimum length are eligible