Questions tagged [tikz-path]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
12 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
67 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
56 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 ...
0
votes
2answers
73 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
40 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
21 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
33 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
62 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
77 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
66 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
85 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
62 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. ...
1
vote
0answers
83 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
57 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
51 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?
4
votes
2answers
240 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
82 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
90 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
80 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 \...
2
votes
1answer
33 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
130 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
88 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
412 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
104 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
477 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
121 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 ...
0
votes
0answers
173 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
195 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
479 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
51 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
397 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. ...
4
votes
1answer
150 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
128 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
94 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
1k 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, ...
1
vote
1answer
2k views

Draw a path from a node to another path

I have a digraph and I would like to draw a path that starts, let's say in node 2 and ends at the near start of path 2->4. IT's slightly different from a loop from 1 to 1. What I am trying to achieve:...
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 ...
0
votes
2answers
605 views

The order of execution of options (draw & font), pgfextra, and a node along a TikZ path

This is the third and final post in the line of questioning regarding the order of execution of options, pdfextra code and other elements along a TikZ path. The other posts being this and this. ...
3
votes
1answer
249 views

Path suspension

In several different contexts in the TikZ part of the TikZ & PGF manual for version 3.0.1a a temporary suspension of the construction of the current path is mentioned: The description of the \...
2
votes
1answer
114 views

Creating a PGF node in the middle of a PGF path

Consider the following LaTeX manuscript featuring a PGF path consisting of two successive diagonal line segments intercepted by a rectangular text node. \documentclass{article} \usepackage{pgf} \...
5
votes
2answers
247 views

TikZ: building closed path with \foreach

Programmatically constructing a closed path with tikz is easy: \path (a0) \foreach \i in {1, ..., 7} {-- (a\i)} -- cycle; But it forces to single out the first point. Reversing the construction ...
2
votes
0answers
225 views

\def \mypath { … } versus \path [name path = mypath] … ;

This question is a follow-up to my last question. It concerns the problem of naming paths in such a way as to be able to perform operations on them such as translating or rotating them calculating ...
0
votes
1answer
102 views

Correct linejoins at tikz to path II

This Question is directly related to: Correct linejoins at tikz to path Please have a look at this question first. A second Problem arises if the start coordinate is a node, which is not used with a ...
4
votes
2answers
135 views

How can I properly restore and use saved Hobby paths?

The excellent Hobby library's documentation says that it is possible to save and reuse Hobby paths. The examples include paths which are shifted and redrawn with different properties. However, I ...
2
votes
1answer
715 views

Tikz: close path

I need to draw a closed shape using controls and then round the heads. The problem is the starting point (The upper one) is not rounded as if the shape is not closed, and the cycle command is not ...
2
votes
2answers
298 views

How to divide image node into equal parts and draw corresponding lines for each division

I need help making 65 custom lines below a chart that I would like to annotate. I want to color every three lines the same color up to the 30th line, which repeats itself again. This is what I did so ...
2
votes
1answer
224 views

Correct linejoins at tikz to path

I would like to use a to-path, where a node is placed in the middle. This breaks the linejoins between the single segments. Therefore, i added short segments at the end and begin of each path. This ...
4
votes
1answer
264 views

How to create a database of coordinates to be used with TikZ?

The seeds of this question were planted in my mind and have been growing since I read this answer. I think it'd be nice to have a database from which some newcommand making use of TikZ picks up ...
3
votes
1answer
107 views

Aligning two arcs of text in tikz

I'm trying to illustrate how rot13 works, using a figure like the one below. As you can see, I'm trying to draw two arcs of text, an outer one that shows a list of characters, and an inner one that ...