Tag Info

Hot answers tagged

7

You can use something like: \path [line] (D) -- ++(0,-30pt) -| (T) node[transition,pos=0.83,left] {$p_{repl}$}; The complete code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzstyle{status} = [rectangle, draw=black, text centered, anchor=north, text=black, minimum width=2em, minimum height=2em, node ...


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} ...


4

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, ...


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}; ...


3

If I understood you correctly, you like to determine rectangle with size determined with two coordinates (bottom left, top right). If this is a case, you can obtain this as follows: \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture}[ mynode/.style 2 args = { draw, rounded corners, fill=black, ...


2

Like this? I just neamed the scenario nodes and then used those names to draw the lines: \node[xshift=-7cm ,yshift= 7cm, font=\small] at (a) (sce1) {scenaio 1} ; \node[xshift=-6cm ,yshift= 6cm, font=\small] at (a) (sce2) {scenario 2} ; \node[xshift=-5cm ,yshift= 5cm, font=\small] at (a) (sce3) {scenario 3} ; \draw[densely dotted] ...


2

Try adding anchor=center to the node style, i.e. within nodes={} in m2style. \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ status/.style={rectangle, draw=black, text centered, text=black, minimum width=1.5em, minimum height=1.5em, ...


2

These are indeed special connections which are not very easy to deal with. Are these connections only to connect circles with straight lines, you can use the intersection cs (or its implicit variant intersection of). Of course, you could also use the intersections library but then you need to name paths and those path have to actually intersect. (Due to a ...


2

In my answer I will address both the header concern, and the incorrect column spacing problem separately. General Requirement The first thing to do is to modify the .cls file by adding the following lines at the beginning after the main packages are loaded: \newif\ifafourpaper \afourpaperfalse \DeclareOption{a4paper} {\setlength\paperheight {297mm}% ...


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 ...


1

Here is a short solution to create this kind of diagrams : \documentclass[tikz,border=7mm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} % draw the grid and the numbers \draw (-1,-1) grid (5,5) foreach \i in {0,...,5}{ (\i-.5,5.5) node{\i} (-1.5,4.5-\i) node{\i}}; % for every line we give first and last index to ...


1

You can also define a node placed at the middle of the coordinates, and big half the distance of the two coordinates. \node[rounded corners, draw=red, minimum size=10cm] at (15,15) {}; Here are the corners to show it fits: Ouput Code \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate ...



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