Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-decorations]

The tag has no usage guidance.

4
votes
1answer
40 views

Misplaced path using -| or |- with decoration (e.g. snake)

If I draw a path with the -|(horizontal-first-then-vertical) or |- (vertical-first-then-horizontal) commands and decorate the path with the snake-morphing operation, the latter half of the path is ...
13
votes
1answer
150 views

TikZ-decoration: control decoration amplitude along curve

Working with path decorations based on this solution provided by marmot I am searching for a possibility to change the decorations amplitude along the graph. Having this plot applying the mentioned ...
2
votes
1answer
100 views

Combine tikz curve with random variation

I would like to combine a curve defined with \draw with a random variation along the path. So far I have found quite some interesting discussions on tex.SE like How to draw Brownian motions in tikz/...
3
votes
1answer
72 views

Transform decorations too

The following code is an attempt to draw "flags". A flag is a line segment together with a box at the middle, on the left side when looking from the start point to the end point. I'm using a ...
3
votes
3answers
329 views

TikZ fill using draw color

The following code uses a decorator to add an arrow tip to an edge. Logically, the tip is part of the edge, and so I want it to be colored with the line-color. However, because the tip is rendered ...
1
vote
1answer
85 views

How to use macro inside TikZ decoration options

I would like to set the decoration options for an edge by using a macro, like this: \def\curlbl{text along path,text={hi}} \newcommand{\myedge}[2]{% \path (#1) edge[decorate, decoration={\curlbl}] (#...
1
vote
1answer
22 views

Why arrow decoration position can not coincide with coordination point?

I was trying to add arrow decoration to a curve in a three dimensional plot like following % !TEX TS-program = xelatex \documentclass[UTF8]{article} \usepackage{float} \usepackage{amssymb} \...
5
votes
1answer
98 views

Tikz: ugly decorations on closed objects at merge point

When I use a decoration on objects that are closed, the merge point is usually ugly. The same problems also appears with arrows, even with the pre option: sometimes the zigzag stops "close" to the ...
2
votes
1answer
82 views

Tikz; decoration with rounded corners

I don't know why, but I can't use decoration with rounded corners. The following MWE fails with ERROR: Dimension too large.: \documentclass[beamer,tikz,preview]{standalone} \usetikzlibrary{...
8
votes
1answer
156 views

TikZ decorations: How to draw a closed path little by little?

To make an animation (here), I used a found code (here: @Jake answers). It works but not for all increments. It works when increments are 0.02 to 0.02, but not when increments are 0.04 to 0.04, 0.05 ...
2
votes
1answer
117 views

TikZ path decoration: text below path

I would like to place a text below a given path in TikZ, see "label b" in the screenshots below. Unfortunately I have failed to find a below key for path decorations in the documentation. So instead ...
21
votes
3answers
414 views

Tikz: decoration at path end disappears at high bend angles

When I place a decoration at the end of a to path with "bend left=..." or "bend right=...", the decorations disappear at high bend angles: \documentclass[border = 2mm]{standalone} \usepackage{tikz} \...
4
votes
1answer
124 views

Decorate a circle ending decoration “exaclty”

I would like to decorate a circle in a way such that the starting and the ending points of the decoration coincides in a nice way. Of course, they always coincide, but I would like to have the element ...
8
votes
2answers
123 views

Tikz snake path has whitespace before/after node (MWE)

I'm using tikz to draw a snake-coil edge/path between nodes, but some edges have whitespace before/after its start or end node. Here is a small example: \documentclass{standalone} \usepackage{...
13
votes
5answers
1k views

Square fractal generation in tikz

I'm trying to recreate this exact diagram using tikz. So far I have been attempting to use nested decorations in tikz since I used these for other fractal constructions. However, these constructions ...
1
vote
1answer
67 views

Aligning labels at the side of tikz diagram

I'm using the tikz package to create diagrams showing the formation process of simple fractals, the first one being is the Cantor set. I'm showing a couple of iterations each one below the previous ...
1
vote
1answer
137 views

Why does arrow decoration NOT appear in tikz?

I have a question on how to decorate a path with more than three arrows in TikZ, I was using the code \documentclass{article} \usepackage{float} \usepackage{graphicx} \usepackage{amsmath} \...
1
vote
0answers
103 views

Distorted arabic font when trying to make text follow the path using TikZ

I need to make Arabic text follow some curved path using TikZ. This is the sample code I am using: \documentclass{book} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{decorations.text} \...
1
vote
1answer
273 views

tikz decorations to create arrow head (positioning problem)

I would like to create my own arrow head (a crossed circle). I try with decorations.markings and it works. However, the decoration enter the pointed node. I would like that the decoration only touch ...
11
votes
4answers
2k views

Is it possible to make a curly brace end in an arrow?

In the following MWE, I'd like to make the right end of the brace an arrow pointing to the right with an arrow head just like the line below it. Is that possible? The goal being that the right side ...
3
votes
1answer
187 views

\textsc on a path with decoration

[Original question] \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \node [circle, draw=red, fill=red!30] (N1) at (0,0) {A}...
1
vote
0answers
108 views

TikZ/PGF drawing Sierpinski triangle for predefined iteration-level [duplicate]

I would like to draw some iteration levels of the Sierpinski triangle. Lets say I'm ok for Iteration 0-4: line, triangle, first times devided triangle (triforce ;) ), ... Is there a way to do it like ...
13
votes
3answers
521 views

Making custom Koch decoration with angle parameter in Tikz

So I'm trying to draw a fractal similar to the Koch Snowflake, so I want to define my own decoration that does the same thing but lets you specify the angle. For example in this picture the angle is ...
2
votes
2answers
536 views

Truncate tikz snake decoration without changing frequency

I would like to draw a diagram of a wave penetrating a body, well several bodies. Or in some cases appear to go through a hollow cylinder. Since all of this is projected onto a 2d plane, this effect ...
17
votes
1answer
609 views

Decorate path precisely on intersection(s) with TikZ - avoiding crossing lines

How can I (Is it possible to) make a decoration style which takes as arguement one path (or possibly more, that would be perfect), and makes an arc, snake, ellipse (whatever), where the paths ...
4
votes
1answer
793 views

How to rotate TikZ decoration (arrow)?

While TikZ has the option of bending arrows that appear at the tip of an edge (library bending), and has the option of placing arrows in the middle of edges (library decorations), I did not manage to ...