The 2024 Developer Survey results are live! See the results

# Questions tagged [tikz-path]

The tag has no usage guidance.

132 questions
Filter by
Sorted by
Tagged with
2k views

### How to Draw Gabriel's Horn

Consider Gabriel's Horn: which, mathematically speaking, is the curve y=1/x over the interval [1,∞] revolved about the x-axis. It is interesting because though it contains a finite volume, its ...
• 9,768
57 views

### How can I define a custom TikZ path operation?

How feasible is it to define my own path operations, similar to --, to, rectangle, or parabola in TikZ? Specifically, I am looking to create custom commands that could be used in a drawing command ...
• 415
75 views

### Path overlaps nodes in TikZ

I am trying to draw a sort of 'locally complete' graph. I know my code is a little ugly, I do not need something very neat, but this appearance is a little upsetting. \documentclass[11pt,tikz]{...
• 23
81 views

### How to add colors in boxes and arrows?

My code is complete, I just want the image to be more pretty by adding colors in boxes and arrows. here's the code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes....
• 53
1 vote
47 views

### Changing the Color of a Single Interval in a Cantor Set made with the Decorate Command

I have the following TiKZ picture of a Cantor Set. \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=Cantor set,line ...
• 25
1 vote
39 views

### Adding nodes or Labels to a TikZ Cantor Set made with the decorate function

I have the following TikZ picture made with the decorate command \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{decorations.fractals} \begin{document} \begin{tikzpicture}[decoration=...
• 25
135 views

### Create command with decoration in Tikz

I am doing a job that is simple but must be done thousands of times. I want to create a command whose inputs are two coordinates ( \coordinate (A) at (0,0); and B at \coordinate (B) at (3,6); for ...
1 vote
75 views

### Unable to plot two arrows with tikzpicture, possible bug

The following code does not work: \begin{tikzpicture}[->] \node at (1.85,-1.2) (bF) {$F$}; \node at (1.27,-1.2) (bd) {$d$}; \node at (3.6,-1.2) (bW) {$W$}; ...
• 395
1 vote
80 views

### How to uniformly distribute pics on a curve?

I want to create a path in the form of a Bezier curve and place pic figures evenly along the path. In this example, the pics are only placed between the last two points of my curve and they are not ...
• 11
1 vote
149 views

### Why do lines drawn in TikZ add space equal to their width into the picture and how can this be prevented?

Related: Horizontal space before TikZ picture Consider the following MWE \documentclass{article} \usepackage{tikz} \usepackage[showframe]{geometry} \begin{document} \noindent \begin{tikzpicture} \...
• 208k
67 views

• 257
189 views

### Draw a line between two lines that inserts each line smoothly

Given two lines, I want to connect both of them in a way, such that the connecting line is smooth. For example consider the following picture: \documentclass{article} \usepackage{graphicx} \usepackage{...
• 257
35 views

### A path below the nodes

Here is a MWE: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsthm,tikz,twemojis} \begin{document} \begin{center} \begin{tikzpicture} % Nodes:...
• 2,591
775 views

### Find midpoint of path

I have two coordinates (v1) and (v2) which are connected by a bended path. Now I would like to connect a third variable (v3) to the middle point of this path, but I cannot figure out how. \coordinate (...
• 257
720 views

### Drawing perpendicular lines to a curved path in tikz-pgf without decorations [duplicate]

I'm trying to make a image like this: Here's how I'm CURRENTLY doing it: \begin{tikzpicture} \draw[color=black, line width=2pt, -latex] (-3,2.5) -- (0, 2.5) +(0,\rad) coordinate (center) (0,2.5) ...
• 93
518 views

### Adding small arcs to a path in specific places

I have a path consisting of a series of straight lines and arcs, and now I would like to modify that path by replacing some segments of the line/the arc with another small arc whose centre is on the ...
• 295