Questions tagged [intersections]

For questions about calculating intersections using {tikz-pgf} or {pgfplots}, including PGF's `intersections` library.

Filter by
Sorted by
Tagged with
3 votes
1 answer
84 views

Intersection between tangent and circle

I am trying to define the tangent line of a circle at a given azimuth then use this intersection to define segment. The MWE here shows that intersection seems badly computed using [turn]90: command to ...
Sigmun's user avatar
  • 1,111
0 votes
1 answer
29 views

Intersection coordinates change when I change values for domain

I'm trying to plot a function using Tikz/Pgfplots. Am still new to using Tikz/Pgfplots. I've created the code using various sources. Here's a MWE: \documentclass{standalone} \usepackage{pgfplots,tikz}...
Ram's user avatar
  • 113
1 vote
1 answer
65 views

Fill between 4 circle and arc

I need to fill a zone defined by 4 arcs for which I know there centers and radius. I didn't manage to create the contour of this area and fill it. Here is my MWE with circle but the size of the ...
Sigmun's user avatar
  • 1,111
2 votes
1 answer
57 views

Recreating overlapping circles with text in tikz

I'm trying to create this image in tikz. I've created the basic structure but cant handle the intersections of the circles with each other. I'm sure the intersections library needs to be used. I ...
afaq's user avatar
  • 337
5 votes
4 answers
413 views

TikZ, fill the space between two paths

I would like to fill the space between the central semi-circumference and the solid black lines above. \documentclass[tikz,border=1.5cm]{standalone} \usepackage{tikz} \usepackage{pgfplots} \...
BowPark's user avatar
  • 1,181
0 votes
1 answer
61 views

TikZ, draw along a path

I have two semi-circumferences with an intersection point defined as E. I want to use different line style/color along them. For this purpose, first I used path to define the semi-circumferences. Now ...
BowPark's user avatar
  • 1,181
1 vote
1 answer
44 views

Tikz, anchor point and intersection

I'm using the following LaTeX code for Tikz: \begin{tikzpicture}[ noeud/.style={draw, circle}, triangle/.style={isosceles triangle, anchor=apex, ...
MathTolliob's user avatar
1 vote
1 answer
34 views

Can I make the intersection between the vertical through an `xshift`ed or `yshift`ed node and another node?

From here In general, the meaning of (⟨p⟩ |- ⟨q⟩) is “the intersection of a vertical line through p and a horizontal line through q”. so (p |- q) makes perfectly sense in a \path or whatever. At the ...
Enlico's user avatar
  • 2,552
2 votes
3 answers
282 views

Repetitive perpendiculars in a right angle triangle

I am trying to draw perpendicular from O in right angled triangle (OAB) to the hypotenuse. From the foot of perpendicular (say X0) of it, two perpendiculars are drawn to rectangular axis with foot of ...
Parag's user avatar
  • 131
2 votes
1 answer
107 views

TiKz-pgf: Project intersection points in the abscissa axis

With some effort, I was able to find a way to mark the intersection points between the Gaussian bell and the straight line. Leaving aside the first point, I would need to project the two intersection ...
user3713179's user avatar
3 votes
2 answers
341 views

Dimension too large for a simple 3D picture

I created this simple 3D box. Everything looks as expected, but I keep getting error Dimension too large. Is there any way to avoid it? MWE: \documentclass{standalone} \usepackage{tikz} \...
Pygmalion's user avatar
  • 6,155
1 vote
0 answers
48 views

Feed intersection's coordinates to pgfplots' \addplot

Following examples in the manual and elsewhere, I can use Tikz to mark an intersection on a pgfplots axis and even display the coordinates (see the commented out section in the MWE below), but I would ...
bongbang's user avatar
  • 385
4 votes
2 answers
225 views

Shorter way of obtaining curved angle with intersections

Consider the following (inspired by this post): \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate (b) at (...
Clément's user avatar
  • 5,213
1 vote
2 answers
190 views

How to draw a cartesian plane like this?

I read some topics but I still don't know how to draw this cartesian plane, someone could help? My difficulty is how to draw the intersection.
Allan Tanaka's user avatar
3 votes
1 answer
745 views

Drawing intersection over union in equation

I'm new to LaTeX and I try to use tikz library to draw intersection over union in an equation like in the following image, but sadly I couldn't find any solution for it. The current state of my code: ...
jaisme's user avatar
  • 35
1 vote
2 answers
264 views

Draw vertical line to arbitrary path or a function by giving x coordinate (pgfplots)

This is a follow-up question to this one. My goal is to draw a vertical line to any path or a function, but the main requirement is to avoid temporal paths that are used to get the intersection. Here ...
antshar's user avatar
  • 4,116
0 votes
2 answers
134 views

Use explicit path in intersection inside axis (pgfplots)

I'm trying to achieve the following: I know I can do that with help of intersections tikz library. However, the main requirement is to avoid any temporary paths (\path[name path=t] (2,0) -- (2,\ymaxv)...
antshar's user avatar
  • 4,116
4 votes
2 answers
210 views

Filling Grid Points Intersected by a Circle

I'm trying to make the image below. I want to fill in the grid points intersected by the circles. I'm able to make the grid and the arrows, the code for that is below. I'm completely lost on how to ...
Knova's user avatar
  • 45
4 votes
1 answer
102 views

Simple question about drawing the real line using tikz

I have never drawn anything of LateX before, and I would like to represent intervals of the form [x,x'], with both x,x' real numbers, as I show below. I have 0 experience with tikz and altough I've ...
Rodrigo's user avatar
  • 471
0 votes
0 answers
150 views

Using tikz spath3 with *nodes*

I can use spath3 with paths (not nodes) in this way: \documentclass{article} \usepackage{tikz} \usetikzlibrary{spath3, intersections} \begin{document} \begin{tikzpicture} \draw[spath/save = rect, ...
DimanNe's user avatar
  • 152
5 votes
2 answers
246 views

decorate or style path between nodes

I'm trying to draw two “blobs”, and a curve from one blob to the other, which is colored differently between the blobs. Here is a MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{...
Matthew Leingang's user avatar
11 votes
1 answer
361 views

TikZ single intersection between curve and horizontal line not found

What happened The error ! Package pgf Error: No shape named `intersection-1' is known. is produced when compiling the following with pdfLaTeX: \documentclass{standalone} \usepackage{tikz} \...
Miriam Briskman's user avatar
0 votes
1 answer
37 views

How do I get this node correctly vertically and horizontally aligned, no deviation horizontally from node above?

I am trying to get the node \node[below = 3 cm of OPC] (NCM) {No match}; aligned so it is directly below the node above, and exactly on the same line as the node to the right. If I do a simple below ...
Michelle's user avatar
  • 503
1 vote
2 answers
90 views

intersection of arc and line

I want to find intersection of arc and line. But I have an error "I do not know the path name 'curc' '' \begin{tikzpicture}[scale=1, font=\footnotesize, line join=round, line cap=round, >=...
Cao Thành Thái's user avatar
2 votes
1 answer
117 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 ...
Mogu's user avatar
  • 321
1 vote
0 answers
96 views

Crossing over method with xy package for one or more arrows

Related on this question, considering the original image, adding my MWE: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix@R=2pc@C=2.8pc{ & b' \ar@{~>}[ddl]|...
Sebastiano's user avatar
  • 52.6k
0 votes
1 answer
66 views

Dimensions too large in pgfplots graph

I exported some code from GeoGebra but I get the error "dimensions are too large." I have narrowed the error down to these two lines \draw [samples=50,domain=-0.99:0.99,rotate around={0.:(0.,...
bravesheeptribe's user avatar
1 vote
1 answer
175 views

TikZ package: coordinate from intersection of arc and line

I've been trying to create a handful of intersections of an arc and lines. Here's my code: \coordinate (A) at (0, 5); \coordinate[label=below:$M$] (B) at (0, 0); \coordinate (C) at (5, 0); \path[name=...
Dudek's user avatar
  • 13
0 votes
1 answer
155 views

Simple plot with TIkZ

I was wondering whether someone knows how to do the graph on the right. I just know how to do very simple graphs. Is there a way to put shaded balls and graphs in the same figure?
Gnoppi's user avatar
  • 169
1 vote
3 answers
120 views

Drawing a function between two intersections with two other functions

I have three functions defined, red, blue and green. I would like to plot the red function only between the intersections with blue and green function. What is the easiest way to do that? \...
Pygmalion's user avatar
  • 6,155
1 vote
1 answer
99 views

Intersection between several lines and a curve using Tikz

I have tried to calculate the intersection, and add a red dot, between a curve called "mincut" and a line called "arc-67". It doesn't work and gives an error like this: ! Package ...
John W. de Burgh's user avatar
1 vote
0 answers
67 views

Dimension too large for a simple tex drawing

I have relatively simple 3D drawing. It compiles fine, but I get five "Dimension too large" errors. How can I avoid it? \documentclass[10pt]{scrartcl} \usepackage{tikz} \usetikzlibrary{...
Pygmalion's user avatar
  • 6,155
11 votes
1 answer
526 views

Why are my TikZ intersections not exact?

In a TikZ picture, I try to intersect an arc with a cubic bezier line. However, the calculated intersection points seem off — do you know why that is? Is this some sort of rounding error? \...
Peater de Xel's user avatar
2 votes
1 answer
68 views

problems with foreach loop and intersections

I have a problem using foreach loop and intersection. My MWE looks like this: \documentclass[border=5pt,tikz]{standalone} \usepackage{pgfplots} \usepackage{tikz} \usepackage{pgfplotstable} \...
Excelsior's user avatar
  • 2,282
2 votes
1 answer
75 views

Extracting a subpath from intersection

I am wondering if intersections can be used to extract a subpath from a circle/ellipse path. I have two ellipses, and I am trying to plot only the perimeter of the union. Considering the following ...
Marc Boyer's user avatar
1 vote
2 answers
68 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 ...
Argidore's user avatar
1 vote
1 answer
174 views

Find several intersections between line and curve using tikz

I want to find the intersections between the orange dashed line and the blue curve using the package tikz, see the screenshot below. As can be seen, only the first intersection is shown. However, I ...
thisismetrying's user avatar
0 votes
1 answer
106 views

{genealogytree} How to draw multiple marriage without edge intersections

Could anybody give me a hint on how to draw the following situation (3 marriages) with no edge-intersection? The example is taken from the manual, p. 233.
Anastasia's user avatar
0 votes
1 answer
101 views

Detect segment intersections with tikz

I have to detect when two segments intersect in a parametric figure that need's to computes coordinates into a tikz picture, and it won't works, seem's that "intersections=... total=\t" or &...
Quenault Michel's user avatar
1 vote
2 answers
317 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,...
esvhei temvvjin's user avatar
1 vote
1 answer
68 views

How to fill area between several paths

I have the folling tikz code, where several paths intersect each other. I struggle to find a way to fill the six different regions of the resulting picture, each with a different pattern (not ...
Archimondain's user avatar
0 votes
2 answers
260 views

TikZ, refer to intersection with x-axis

In this code: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows.meta,babel,calc,intersections,backgrounds} \usepgfplotslibrary{fillbetween} \begin{document} \begin{...
BowPark's user avatar
  • 1,181
0 votes
0 answers
52 views

Why doesn't a code from an answer compile?

There was a good answer about naming angles here: https://tex.stackexchange.com/a/55555/227339 I try to run it on my computer, but I get these errors: As I understood, the problem is that name path=...
Allok's user avatar
  • 375
2 votes
1 answer
109 views

Tikz trim lines at intersection

I'm trying to come up with a way to draw "parametric" right triangles, meaning that I change the length of the hypotenuse \hypo and one of the internal angles \alfa and it should draw the ...
Andyc's user avatar
  • 555
0 votes
1 answer
61 views

TikZ intersection command with strange behavior

I am trying to put some nodes at the intersection of a circle with some bissectors. However, the intersections are not behaving how I supposed they should. The text wrong should be placed at the ...
B. Dors's user avatar
  • 129
1 vote
1 answer
196 views

Is there a clever way of drawing/marking intersections of multiple paths in block diagrams automatically?

I'm trying to draw a block diagram with tikz and would like to match some kind of convention concerning the intersection of lines/paths. The convention says, that the marking/semicircle has to be at ...
Nivek's user avatar
  • 105
2 votes
0 answers
75 views

PGFPlots intersection segments wrong curve and endpoint

When trying to answer How to delete a part of a curve in Tikz? , I ran into problems with intersection segments from PGFPlots fillbetween. I tried to change the curve from to[out=280,in=175] to ...
hpekristiansen's user avatar
6 votes
1 answer
167 views

3d intersections

As exercise, I'm trying to draw the intersection of the prism [0,2] x [0,4] x [0,6], and the plane x + y + z = 5. My result is: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=...
Blooment's user avatar
  • 668
2 votes
1 answer
956 views

Plane intersecting sphere with tikz and tikz-3d

I'm really surprised that I couldn't find an answer to this question, but here it goes: how can I draw a plane intersecting a sphere using tikz and tikz-3dplots? I managed to do the following, using a ...
B. Dors's user avatar
  • 129
3 votes
1 answer
109 views

Filling area between 2 Plots made by coordinates with transparent

I am trying to fill the area between 2 plots with lil bit transparency. Actually i got with fill between this figure: How can I only fill the difference between the two plots. Make the actual orange ...
credenco's user avatar
  • 309

1
2 3 4 5 6