12
votes
4answers
659 views

Draw curved path inside circle

How to draw the curved line inside the red circle in this picture : MWE \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
6
votes
1answer
98 views

How to draw curved paths

I'm trying to do this picture : I have a problem to draw the curved paths. MWE \documentclass[scale=0.5,border=12pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
4
votes
1answer
91 views

Simulating hand-drawn on curve lines, make a cycle AND fill it if necessary

Reading this question : Simulating hand-drawn lines and following Percusse's idea I tried this : But is it possible to "hide" the multido code in a style command and pass the parameters throu ...
1
vote
1answer
47 views

Closing a path with too sharps edges [duplicate]

The "oval" path in too sharp as you can see in the intersection with the horizontal line. How can i fix this problem? \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns} ...
2
votes
3answers
160 views

Closing a path with a “to” curve

The "oval" path in too sharp as you can see in the intersection with the horizontal line. How can i fix this problem? \documentclass{article} \usepackage{tikz} \begin{document} ...
7
votes
1answer
56 views

Declaring Custom fading leads to unfilled element? (Tikz/PGF)

What is wrong with the following way of declaring fadings using PGF/TikZ?: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,fadings} \begin{document} \begin{tikzpicture} ...
5
votes
1answer
105 views

circle vs arch with shorten — normal or bug?

When I draw arches using arc in pgf, the arch path precisely fits on the path of the corresponding (ie having the same radius) circle (red on black in the attached figure). When I apply shorten to the ...
2
votes
1answer
217 views

drawing arrows on a circle path and a tangent arrow in tikz

I would like to draw relatively complex paths in tikz. This is an example: The boxes represent nodes with texts of different lengths. The arched arrows should be on a circle path. The arched arrow ...
5
votes
1answer
64 views

Fill a path but drawing just a part of it at the same time

I want to fill the angular sector and just draw the curve part of it in one command. I tried with move to command but it doesn't work. \documentclass[tikz,10pt]{standalone} \usetikzlibrary{calc} ...
6
votes
1answer
179 views

Number of intersection points

In this examle from pgfmanual p 132, how to use \t the number of intersections point outside \fill command. I tried \def\Nb{\t} but it dosen't work. \begin{tikzpicture} \clip (-2,-2) rectangle (2,2); ...
7
votes
1answer
194 views

Extract a part of a path and reuse it as part of a new one

I want to draw the blue line part 1-2-3-1 filled and the blue line part 1-4-3 dashed. The definition of the blue line (EllA path) is made of computed nodes. I can't find intersection points during ...
5
votes
1answer
143 views

Use a part of a path to make a cycle

I have two pathes the firt is to be fully drawed, but only a part of the second using intersection point with the first. Here an example: I want to draw only the upper part of the square (dashed) as ...
3
votes
3answers
177 views

Path and node problem

In the following example, why there is no blue triangle ? \documentclass[a4paper]{article} \usepackage[marginparsep=3pt, top=2cm, bottom=1.5cm, left=3cm, right=1.5cm]{geometry} \usepackage{tikz} ...
2
votes
0answers
127 views

How to close path for complex path in TikZ?

I'm doing a bit of 3D primitive fugures using this code: \documentclass[tikz,10pt]{standalone} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{mathptmx} ...
5
votes
1answer
181 views

TikZ: create filled polygon from single points set

I have a list of named points (from mark-1 to mark-26) and I want to use them as vertexes of a polygon, which should be filled blue. I don't want to write them down in a path manually because they ...
4
votes
0answers
168 views

Hebrew text along a (circular) path is typeset LTR instead of RTL

I have read Typesetting straight baselines in a circular arrangement and I would like to have a solution for my situation. I would like to insert some text in Hebrew on an annulus. Here is my attempt ...
19
votes
2answers
1k views

Meaning of bend right or left in TikZ?

The following code actually comes from the PGF manual. It works fine, but I have a difficult time in understanding it (I'm new to TikZ) \documentclass{article} % say \usepackage{tikz} ...
4
votes
0answers
353 views

TikZ path decorated with coil or snake

A recurrent question on the forum is... How to draw a decorated path without a straight segment at the end? Usually the path described are straight lines (See post1, post2 or post3), but there are ...
3
votes
2answers
1k views

LaTeX Flow Chart Path Problem [duplicate]

I have a flow chart that has all of the nodes that I want, there is just one path that I can't get. \begin{figure}[H] \begin{center} \tikzstyle{decision} = [diamond, draw, fill=blue!20, ...
3
votes
1answer
197 views

How can I move a “text along path” vertically?

How can I move a "text along path" vertically? Currently, I'm using a path with modified endpoints to place the text, and then draw the actual line. \documentclass{article} \usepackage{tikz} ...
8
votes
2answers
1k views

TikZ: position text along path

I'm trying to position a piece of text at a certain position along a multi-part path. Here's what I have been trying so far. \documentclass[tikz]{standalone} \usepackage{tikz} ...
5
votes
1answer
331 views

Problems with \pgfplotstableread and relative paths

I have this folder structure in my project: main.tex mystyle.sty tex mytex.tex img myimg.tex dat mydat.dat And the following files: main.tex: \documentclass{scrartcl} \usepackage{mystyle} ...
4
votes
1answer
145 views

“Stroke” a predefined path

I would like to use the name of a previous defined path to draw it later on in my code. I have included an example below, where I define two paths, "D1" and "S1", and then later on, draw these very ...
5
votes
2answers
315 views

TikZ: Combining multiple paths in and outside foreach

I am trying to generate a path from a list of directions (as seen on the numpad). The coordinates are generated correctly, but because I use multiple call to \path the arrowheads are drawn on each ...
2
votes
0answers
23 views

node at sloped path and/or not respecting every path/.style [duplicate]

I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
1
vote
1answer
98 views

elliptical path estimation

I am going to use tikz to make the following picture (see below). I don't need advice or help in making the picture just estimating the ellipse since I don't have anything to reference. The ellipse ...
8
votes
1answer
421 views

Filling the arrow tip and not the path using two different colors

I have a small problem with some arrows but I can't seem to find a solution. Please note that this question is different from Setting fill color for TikZ arrow tips only (and not the path itself), ...
16
votes
3answers
1k views

How to fine tune rotation of text along circular path?

After searching the web and finally coming from here (recreating a logo), I couldn't find an answer to what I am looking for. I want to rotate a text inside a circle and have a full control/fine ...
10
votes
1answer
590 views

Draw additional parallel paths in TikZ

How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path. Example path: ...
7
votes
2answers
211 views

TikZ setting the edge of a path to horizontal rather than in=0 out=180 or vice versa

\path[->] (A) edge [out=180, in=0] (B); This path is written quite often in my document. Sometimes I find myself changing it to: \path[->] (B) edge [out=0, in=180] (A); I do not want to ...
1
vote
1answer
299 views

Assistance on arabic text on TikZ

I attempting to use both arabic and TikZ pictures but, I have four problems: The Arabic words appear in reverse order, the first word appears finally ... The sentence is not in arc as in the English ...
9
votes
1answer
182 views

TikZ: positioning label at the end of a path

I'm trying in TikZ to find a general way to draw an arrow and label it at the end. Something like this works reasonably well: \draw[->] (0, 0) -- (1, 3) node[pos=1.1]{$\vec{v}$}; However, ...
4
votes
1answer
455 views

Adjusting font size for fake perspective

I'd like to add text on the paths on the left side with font size continuously adjusted from \Huge to \tiny to achieve a perspective like effect. The font size steps shouldn't be \Huge, \huge, \LARGE, ...
5
votes
1answer
367 views

How to fill area between curve defined by series of control points and x-axis

How to fill area between curve defined by series of control points and x-axis? MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{intersections} ...
7
votes
1answer
609 views

assistance on good handling of text on TikZ paths

I am putting together an ornate logo using TikZ. The logo as it is currently is as follows: I request assistance on handling the lowermost outer text (which reads "UNIVERSITY OF GLASGOW"). For the ...
5
votes
2answers
110 views

How do I use scopes to apply a style to nodes inside a path?

I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation. However, a scope that I want to use to style the nodes only styles the ...
9
votes
1answer
5k views

TikZ: text along path as node

I'm using the decorations library to put bended text along a path. That works fine. However, I'd like to have the bended text as a node, so that I can later use it as a reference (for instance to draw ...
8
votes
1answer
207 views

How to build a trail of nodes from a path in tikz-pgf?

What I want: where the yellow line is the path to be transformed. The points inside the yelow line are the nodes after processing. The only way I found to do this is the intersection between a ...
10
votes
3answers
742 views

Decorate path with arrows at nodes

Standalone example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \draw[black, very thick] plot[smooth] coordinates {(4,1) (2,2) (1,3) ...
7
votes
1answer
129 views

Why do my “to path” arrowheads disappear when I upgrade to PGF 2.10?

Since I upgraded to PGF 2.10, some of my arrows drawn with to don't look right anymore. For instance, they are missing arrow-heads, and some other styles I applied to them have also disappeared. For ...
3
votes
2answers
497 views

Make line extend beyond endpoint and intersect with line

Is it possible to have a line go through two coordinates and then extend until it intersects with another line? The line in question is not horizontal nor vertical (otherwise I could use the ...
3
votes
1answer
230 views

Error in start node of path

Getting a strange error where any path from a certain node starts in the incorrect place. The red paths are identical in code. The image on the left is what I expect, but the image on the right is ...
9
votes
2answers
2k views

Increase the bending distance of a ``to`` path in TikZ

I have problem with an small graph. The path between the node J and B should to the right of node I. Is there a way to do this? \documentclass[11pt]{article} \pagestyle{empty} \usepackage{tikz} ...
6
votes
2answers
743 views

Coil path decoration without straight segment

When a path is decorated in TikZ, a straight line segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a very nice versatile resolution for ...
13
votes
1answer
339 views

highlights path sequentially BUT in order of clicking

I have been looking for a possibly difficult answer to a simple question. I would like to be able to highlight paths on a TikZ picture. I would like to highlight these paths by clicking on them and at ...
11
votes
1answer
475 views

TikZ: Decorated paths without straight segment

When a path is decorated in TikZ a straight segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a resolution for the snake decoration has ...
6
votes
1answer
561 views

Extract coordinates from 3D point

How do I extract coordinates from a three-dimensional point defined when using tikz-3dplot? I would like to perform some calculations on these (more specifically a cross-product of two vectors), but ...
7
votes
2answers
529 views

TikZ: Bug with multiple decorations “at position 1”?

If I try to put two decorations on the same path, both at position 1, only the first shows up: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} \begin{document} ...
9
votes
2answers
760 views

TikZ: How to decorate a path with the open diamond arrow tip that “bends” with the path?

I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} ...
4
votes
2answers
506 views

Draw reversed path in TikZ

Is there a way to draw a TikZ path reversed? I am trying to create some code that generates tessellating figures (to be used in How do we Draw a Bird in LaTeX). Here is what I got: ...