Skip to main content

Questions tagged [intersections]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
70 views

How to horizontally align the dashed lines to the intersection point?

Edit: Solution has been found using the syntax I borrowed. It just involves changing the code pertaining to the horizontal line to \draw[dashed, line width=0.5mm] (0,0|-A) -- (A);. It's a simple ...
Atex's user avatar
  • 210
5 votes
2 answers
291 views

How to fix the color regions of this tikz figure?

I am trying to fix the blue region in the figure below but the white part is not completely filled yet. Here are the following Latex codes for the standalone figure: \documentclass{standalone} \...
OGC's user avatar
  • 891
10 votes
5 answers
726 views

how to draw circle touching two other circles near intersection

I want to draw a circle with a given radius so that it touches two other bigger circles near their intersection. I am using the tkz-euclide package but could not figure out this case. The code below ...
Thierry Blanc's user avatar
6 votes
4 answers
143 views

TikZ how to temporarily discontinue line at intersection of two lines

I am working in TikZ and I am trying to make one line stop, then start again before and after the intersection with another line. I have attempted to put a node at the intersection point and filled it ...
vali.b's user avatar
  • 63
2 votes
0 answers
62 views

pgfplots: find the intersection point of two curves and determine the y value of the intersection point

Thank you for reading my question! Introduction Now I want to draw a picture, in which I need to calculate the intersection point of the two curves and determine whether the y value of the ...
BqBPdx's user avatar
  • 39
4 votes
1 answer
79 views

LuaLatex and intersection segments: Error only with Lua

I need to use LuaLatex with my document and somehow run into an error while compiling a plot. I reduced my document to the following MWE: \documentclass{scrartcl} \usepackage{shellesc} \usepackage{...
AcademicCoder's user avatar
4 votes
2 answers
151 views

Importing two symbols from stix2

I want to import two math symbols from stix2 package: \rdiagovfdiag and \fdiagovrdiag which look like this: I want to do this, because adding the whole package changes style of my article which I don'...
Mogget's user avatar
  • 143
1 vote
0 answers
66 views

Drawing a simplex/diagram with crossings [closed]

I'm trying to come up with a way of drawing a simplex and handling crossings via loops in the most naive way possible: for every possible pair of lines, find the intersection point draw the first ...
J Wells's user avatar
  • 11
3 votes
1 answer
136 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,121
0 votes
1 answer
38 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
85 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,121
2 votes
1 answer
114 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
  • 347
5 votes
4 answers
490 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,213
0 votes
1 answer
95 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,213
1 vote
1 answer
91 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
37 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,612
2 votes
3 answers
296 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
  • 141
2 votes
1 answer
199 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
368 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,329
1 vote
0 answers
55 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
  • 407
4 votes
2 answers
233 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,651
1 vote
2 answers
224 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
2 answers
1k 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
405 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,652
0 votes
2 answers
148 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,652
4 votes
2 answers
217 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
121 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
  • 491
0 votes
0 answers
195 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
263 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
392 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
39 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
  • 551
1 vote
2 answers
100 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
178 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
107 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
  • 56.7k
0 votes
1 answer
74 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
221 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
181 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
125 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,329
1 vote
1 answer
105 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
72 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,329
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
82 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,322
2 votes
1 answer
103 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
72 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
228 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
125 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
108 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
377 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
95 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
404 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,213

1
2 3 4 5 6