# Tag Info

1

You can play with looseness parameter or some others which are explained in section "70.3 Curves" from pgfmanual \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=stealth', shorten >=1pt, auto, node distance=5cm, thick,main node/.style={circle, fill=blue!20,draw,thick,align=center}] ...

2

A wide range of examples for drawing graphs with tikz can be found here. Also the pgfmanual has examples and much more information. For adjusting the images style please refer to this resources. Here a simple matrix-based solution for your problem. \documentclass[tikz, border=6mm]{standalone} \usetikzlibrary{matrix} \begin{document} ...

2

Unless you need to do more complex stuff, you can use tikz-cd. Output Code \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{figure}[!h] \[ \begin{tikzcd} & & & 4 \arrow[dr, rightarrow] & \\ 3 \arrow[r, leftrightarrow] & 1 \arrow[r, leftrightarrow] & 0 \arrow[r, rightarrow] \arrow[ur, rightarrow] & 8 ...

1

I think you're looking for inner {x|y}sep=0pt. Adjust it according your needs. Following code uses inner xsep=0pt and the result is: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \node at (0,0) (CE1) {\includegraphics[height=3ex]{example-image-a}}; \node at (2,0) (PE1) ...

1

This works perfect as long as your text doesn't get too long. \documentclass[tikz, border=6mm]{standalone} \begin{document} \begin{tikzpicture}[x=1mm, y=1mm] \coordinate[](0_r1) at (0,22.5); \coordinate[](0_r2) at (0,42); \coordinate[](0_r3) at (0,49); \coordinate[](b1_r2) at (14.4,42); \coordinate[](b1_r3) at (14.4,49); ...

2

This is a known issue, and it has been treated before1 but it could be a problem in the code for the fit library.2 However you can use the solution found in one of those questions and use the label instead. I also think it's easier if you create a new command for placing your nodes which reduces 3 lines of code for one node, to one line of code, using the ...

7

This is very basic. Obviously you need to adjust the tick labels etc. for your purposes. But you want code which looks something like this: \documentclass[tikz, border=5pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}% ref: http://tex.stackexchange.com/a/147772/ by Harish Kumar \addplot [ domain=-0:2*pi, ...

2

You don't need overpic actually. You can do it just using Tikz. But we need to modify your code as follows: Both the image (I used an example one) and the node go inside a tikzpicture. You can combine the \draw and the \node, no need to specify both. The image will be inside a \includegraphics, which in turn will be inside of a node itself, with the anchor ...

3

Here are two examples that produce "attached lables", one using transform shape, the other using rotation correction. \documentclass[tikz,border=7mm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \i in {0,30,..., 330} \draw[red, ->, rotate=\i, transform shape] (0,0) -- +(0:3) node[rotate=-90,above]{fixed}; ...

4

Even with forest which can do a lot of things automatically, a certain amount of manual tweaking is needed. There is just no way for it to know what the content of the node means. However, forest does allow you to integrate the loops into the tree which may be attractive in some cases. For example: \documentclass[tikz,border=5pt]{standalone} ...

0

forest can automatically handle the insertion and placement of ellipses as required. For example: \documentclass[tikz, border=5pt]{standalone} \usepackage{forest} \begin{document} \forestset{ gappy/.style={ before typesetting nodes={ insert after={ [\dots, no edge] } } } } \tikzset{ document element/.style={ rounded ...

Top 50 recent answers are included