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-path]

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 ...
4
votes
2answers
65 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
17 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
61 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
56 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
155 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
74 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
0answers
30 views

Node placement with Tikz `to` and plan TeX [duplicate]

I'm having difficulty with placement of nodes along a path when using TikZ with pdftex. I can control the placement properly using the -- and controls options, but not to. Any advice? \input tikz \...
1
vote
1answer
220 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
76 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
132 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
106 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
211 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
41 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
140 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
107 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
94 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
71 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
796 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
1k 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
381 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
202 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 \...
3
votes
1answer
94 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} \...
4
votes
2answers
133 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
139 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
68 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 ...
5
votes
2answers
105 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
413 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
243 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
112 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 ...
3
votes
1answer
203 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
85 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 ...
2
votes
2answers
51 views

How can I close a path made of arcs

I have the following code which is generated by some script. The first and last coordinate in the path are the same. I don't know how to tell TikZ to close the path. I have tried adding --cycle but it ...
3
votes
2answers
277 views

TikZ/pgf: How to Change the Direction of a Path and the Beginning/Origin/Starting Point of the Path

In my MWE I have a simple path (circle) and I overlay the path - using a tikz postaction - with the same path but with another line with and another color. The reference (thanks @MarkWibrow) of the ...
2
votes
2answers
194 views

TIKZ/PGF: Color an Arbitraty Fraction of a Custom Path (generated with Inkscape export)

I have a tikz path that is generated by an external software (Inkscape, svg2tikz export). \documentclass[ tikz, border = 2mm ] {standalone} \usepackage{tikz} \begin{document} \begin{...
0
votes
1answer
104 views

Specifying the coordinate for line margin, not for line center

I want the marginal point of a line start to be positioned at a certain coordinate, not the center point (which seems to be default). Is there something similar to \draw[anchor=north] (0,0) -- (1,0); ?...
2
votes
1answer
164 views

How do I use spath3 package to shading a path?

Georges Dupéron's solution of the question "Tikz: Shading a path without any filling" is definitely what I need and it's an excellent solution. Since the spath package has had an improve version (...
2
votes
1answer
101 views

Text that changes scale along a path

My searches haven't pulled up anything like what I'm looking for. I'd like to create text that does something like what you can see here. I'm not trying to create the poster. I just want to write ...
7
votes
1answer
185 views

How can I render filled paths correctly within blend groups in TikZ?

Based on the examples in the TikZ manual around page 341, I expected the following code \begin{scope}[blend group=overlay] \fill [ball color=red] (90:.6) circle (1); \fill [ball color=...
2
votes
1answer
289 views

How can I bend an edge into a self-referencing circle?

I want to model the behaviour described by something like the following arrow using draw: \draw[->] (zero.north) .. controls +(left:7mm) and +(up:15mm) .. (zero.north); But since I need to ...
1
vote
3answers
2k views

Tikz - Draw rectangle with dashed one side and hatching on the others

I need to a scheme like this one: The problem is, I have no idea how to do the dashed line on top of rectangle and the hatching in the left side and in the bottom. Is it possible with Tikz?
7
votes
2answers
865 views

How to combine paths defined by functions to fill area

Inspired by this question I stumbled upon a problem I couldn't solve. Probably somebody can help me out. The actual question was, how to fill an area enclosed by four functions. Taking a sheet of ...