Questions tagged [tikz-path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
42 views

Placing a fully defined picture absolutely at any point inside a path picture

The following example generates a rack switch with a single port. The front oft the rack switch is defined by a path picture. I add the port to path picture by using \node and i am placing the node ...
4
votes
1answer
48 views

Decorate a multi-segment path without changing segment endpoints

I'd like to draw multi-segment "wavy" paths, so I tried both the standard snake decoration, and the very promising complete sines one as well, but in both cases, the segment endpoints are ...
2
votes
1answer
43 views

Filling the intersection of paths

I am aware that there is myriad of posts dealing with the intersection of objects in tikz, but I haven't found one that shows how to intersect two paths, so far. I would like to either shade or hatch ...
4
votes
1answer
66 views

How to draw an edge further away in tikz

In the example below you can see an illustration of the problem I have. I would like to draw an error from node s to 6, but I want to clear node 1. It is easy to do using \draw as you can see from the ...
2
votes
2answers
56 views

Node contents when placing a node on path

In TikZ one can specify a node by a command like \path (0,0) node[node contents=A]; This is very useful if one wishes to apply a command to the text in the node, say, to avoid writing \node at (0,0) {...
3
votes
1answer
68 views

Does Tikz have a way to link nodes on same/different levels automatically?

I want use Tikz to create linked lists (the data structures, with info and next fields in each node). The lists are horizontal, i.e., each node to the right of the previous one. But some nodes must be ...
0
votes
0answers
33 views

Package Tikz Error at subsection

There are several errors like this in my whole report especially when a subsection is added. I'm unabble to figure whats wrong
3
votes
2answers
86 views

TikZ/PGF: cut, intersect, unify paths getting a new path

Sorry, I am fairly new to TikZ. Is there a set-theory way of cutting, intersecting, unifying paths like in (proprietary) GUI applications? Or better asked, what is the tikz approach to to deal with ...
1
vote
1answer
36 views

TikZ not detecting third intersection of curves

I want to find the intersections of a graph in a certain y-value in order to create a hybrid path between the curves. However, for some reason, TikZ is not detecting the third intersection. Here is ...
1
vote
2answers
46 views

how to draw n horizontal y-axis parallel lines intersect m vertical x-axis parallel lines

use \foreach command add node circle \begin{tikzpicture}[scale=0.5] \draw[->] (-10, 0) -- (10, 0) node[right] {$x$}; \draw[->] (0, -10) -- (0, 10) node[above] {$y$}; { \foreach \n in {8,7,...
4
votes
3answers
120 views

How to draw a tikz smooth path connecting points on an image?

I want to draw a "specific" smooth path connecting points on the folowing image to get All i can do is putting the points on place. Here is my MWE \documentclass[tikz]{standalone} \begin{...
1
vote
2answers
101 views

Draw path between nodes in line with another path

I have nodes of differing heights next to each other and would like to draw a path (arrows) between them. However, I would like the path to be horizontal all the way. I managed to achieve this between ...
0
votes
1answer
54 views

PGF equivalent of PostScript relative movement (`rlineto` and `rmoveto`)

Like PostScript (with its rmoveto and rlineto), TikZ makes it trivial to produce relative movement of the current point. I'm not seeing anything equivalent in PGF. Is it missing? If so, is it easy ...
2
votes
1answer
77 views

Tikz: Shading a path – fade-no-fill.sty does not work as previously (Oct 2020)

I have coloured some paths in a radial drawing of a network graph with a colour gradient. A picture of my document compiled in January 2020 shows what it should look like: To achieve this effect I ...
1
vote
0answers
21 views

How to fill a Tikz path, for which anchors are not defined by coordinates but by nodes

I am trying to add a path in a tikzpicture. The area surrounded by the path shall be colored, i.e., filled in a color. I would like to use nodes as anchors for the path, rather than x, y coordinates. ...
1
vote
3answers
106 views

label arrow for tree diagram

Kindly I want to ask how I can plot a diagram like the attached one on latex? Thanks Here is what I have already done: \begin{tikzpicture}[>=latex'] \tikzset{block/.style= {draw,rectangle,...
1
vote
1answer
70 views

Text along path and gradient on each character

I am trying to draw a large colored text along a path, where the color follows a gradient. I found posts describing how to draw text along a path and posts showing how to draw colored text with ...
1
vote
2answers
143 views

TikZ style that shifts a path perpendicular

Is it possible to define a TikZ style that shifts a path perpendicularly? I.e., the resulting path should be obtained from the given path by shifting every point, say, 0.1cm to the right, orthogonal ...
0
votes
0answers
48 views

TikZ: vary line (arrow) width

I'm surprised this hasn't come up before, but I've found nothing on either tex.sx, Google, or in the TikZ/pgf manual. (Perhaps I haven't looked hard enough.) I'd like to draw some very simple ...
1
vote
0answers
24 views

Spurious space using \path (wihout draw options) [duplicate]

I'm trying to extract coordinates from a named coordinate, then to use it for an additional drawings in the next code \documentclass[tikz, border=0.5]{standalone} \usepackage{tikz} \usepackage{...
1
vote
1answer
44 views

Is there a way to specify style for part of a path in tikz? [duplicate]

When I need a partially dashed path as below I have to write two \draw commands: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1); ...
3
votes
2answers
76 views

TikZ path controls cause centering to fail

I have the following figure. It appears to me that the path labelled G messes up the centering of the figure in the document, probably because TikZ uses some invisible control points to draw this arc. ...
1
vote
1answer
139 views

Image as background pattern — connecting bars in tikz mindmaps

This is a follow-up to a previous question. Assuming the following setup: \documentclass[margin=10pt]{standalone} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usetikzlibrary{mindmap,...
2
votes
1answer
80 views

Cased edges in gap-planar graph (intersections, redraw path)

For illustrating my thesis on k-gap-planar graphs I'd like to find an elegant and parametrizable way to produce drawings of such graphs with cased edges (to make clear to which of the edges the ...
2
votes
1answer
119 views

Tikz path crossing over first node

I'm working on a Python script to automatically draw pinout diagrams for IC's with Tikz. An example drawing with the TeX file obtained are shown below. As you can see I'm almost done except for a ...
2
votes
0answers
22 views

How to “connect” three paths starting at the same point? [duplicate]

The following is a rather simple question, yet somehow I failed to find a solution online. Let's say for example we want to draw a three-dimensional coordinate system: \documentclass{article} \...
1
vote
1answer
68 views

Help drawing as text a number from a formula (For instance [ 1-\thepage)*70+\i ] )

Googling I found that it is common that \lineno does not work properly around displaymath with the ifacconf.cls template. I am trying to improve a workaround I found for peer review reference. ...
2
votes
0answers
139 views

center text along tikz path after a shift [duplicate]

I elaborated upon Decorate tikz path with cyrillic text to develop an example: \documentclass[margin=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{document} \begin{...
2
votes
1answer
70 views

Define and use paths inside foreach

I've looked at this and that, and I'm unable to compile and use intersections of lines i give name inside the same foreach loop. \documentclass[tikz]{standalone} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
55 views

TikZ node coordinates (nodeName.number??)

In the following example code: ... \node (naveq) [naveqs] {Navigation equations}; \path (naveq.140)+(-\blockdist,0) node (gyros) [sensor] {Gyros}; ... what does naveq.140 means?
5
votes
2answers
383 views

Moving a point along a “multi-node path”

I would like to create a gif (as explained in this answer) of a point moving along a crooked "multi-node path". I would like this path to be specified as below: a sequence of nodes connected by edges. ...
4
votes
2answers
106 views

Arrows along a partial named path

I am trying to reproduce following image: For that I create 3 nodes, a support path (mycurve) and (hidden) support lines (l1 to l12) then place other nodes on the lx and mycurve intersections. This ...
3
votes
1answer
115 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 ...
4
votes
2answers
84 views

Even-length cycle laid out as a star

For demonstration purposes, I want to obtain a graph of C10 shaped as a star. I have been working on this for much longer than I should have. I currently have this: \begin{figure} \centering \...
3
votes
1answer
41 views

Using a macro in the \path plot coordinates {} list

I'm trying to create a function that generates blobs with boundaries that have continuous curvature. As long as I pass individual coordinates to the function, everything works out well. \...
3
votes
1answer
171 views

Show that drawing is cutoff with tikz

\documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{decorations.pathmorphing} \begin{tikzpicture} \draw[black] (-1,-2) -- (-1,0); \draw[decorate, decoration = {snake, ...
2
votes
2answers
98 views

Can rulercompass tools mark intersections without drawing the circles?

I'm trying to make a perpendicular bisector between two points, so that I can specify any two points I want (marked here as A and B), and the rest of the diagram follows it. I didn't know another way ...
3
votes
3answers
507 views

No bidirectional arrow with path

I have the following figure \begin{tikzpicture} [ai/.style={circle,draw=none,very thick,fill=gray!50,minimum size=2.3cm,text width=2.3cm,align=center}, human/.style={circle,draw=none,very thick,fill=...
5
votes
1answer
113 views

Flow chart questions

I just started using LaTex and this is my first try on drawing a graph. I've encountered some problems and these are my questions: May I know how can I position M,Q and E on the arrows "above" and "...
1
vote
1answer
669 views

No shape named … is known

For this error I can not find a correct answer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Welcome to Overleaf --- just edit your LaTeX on the left, % and we'...
5
votes
1answer
142 views

TikZ intersection not found

I ran into the following problem: Constructing a path using "plot", I fail to find intersections that fall exactly onto the coordinates used to construct that path. In the example below, the 2nd ...
1
vote
0answers
200 views

Grammar of tikz \path command

This is one of the more confusing things regarding tikz. You can find various usage examples for the \path or \draw commands online and each of those will be unique in its own way. I wonder if there ...
4
votes
2answers
260 views

Tikz: convert a (fit) node into a path, for clipping, filling

I would like to do something like here in order to clip text outside of an area. But I'd like to specify the area using precisely a given node (that, in my case, is constructed using fit). The thing ...
6
votes
2answers
683 views

Tikz Positioning on \draw not working

I have the following issue: I add a node to a path (drawn with \draw) and I'd like the node to be positioned "midway" or "pos=.5", but, in the following example, the node gets positioned on the first ...
1
vote
1answer
64 views

Can I draw a path using the `--` syntax but still something like `bend right`?

I like the \draw (a) edge[bend right] (b) ; way of drawing because it allows me to curve the edge a bit without worrying about specific control points. I like the \draw (a) -- (b) -- (c) ; way of ...
2
votes
1answer
577 views

TikZ: How to extract / highlight a segment of a curved path [duplicate]

I would like to highlight a segment of a curvy path (color, thickness) defined by several controls as shown in the following image. I already tried it using intersections and clipping but I failed. ...
5
votes
1answer
163 views

Why does every path style affect also the node borders?

If I add rounded corners to every path/.style, the option affects also the node borders. Why? Is creating a style to use in a scope environment the correct way to avoid it? (The actual flowchart has, ...
1
vote
1answer
173 views

Tikz fill area enclosed by cycle [duplicate]

It is in tikz possible to fill area inside a cycle, right? I am having issues with it and I can't figure out what I am messing up: \documentclass[center]{article} \usepackage{tikz} \begin{document} ...
2
votes
1answer
128 views

Can't increase radius for angle between two lines

I want the angle label gamma to have a larger radius, but the radius parameter won't change anything. Here is my code \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \...
0
votes
1answer
2k views

How to plot dotted lines

\begin{tikzpicture} \begin{axis}[ axis x line = middle, axis y line = center, axis line style = {-}, xlabel = $$, ylabel = $$, xmin = -2*pi, xmax = 2*pi, ...