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 [intersections]

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

2
votes
2answers
70 views

Finding the intersection of two circles

I am attempting to use pair[] intersectionpoints to find and label the intersection points of the circles defined by path h and path g. Thanks for the help. \documentclass{standalone} \usepackage{...
9
votes
2answers
131 views

Colouring of intersection of four circles with TikZ

I want to selectively fill intersection of four circles as shown below. I was able to make some of the intersections correctly but not able to figure out how to make the remaining ones. Here is the ...
3
votes
1answer
56 views

The Area of a Region Bounded by Two Graphs

I am looking for a more professional program from that here below. I believe I can name the curves and have TiKz calculate the points of intersections instead of finding them with a pen and paper. I ...
5
votes
3answers
289 views

What is the meaning of option 'by' in TikZ Intersections

Pg 65 of the PGF Manual, shows different operations with the intersections library in TikZ. But I am not able to understand the code. What is the meaning of the option by here. The explanation given ...
3
votes
2answers
46 views

Named paths inside a tikz/pic

I am trying to understand the naming behavior of paths inside a pic definition. Consider the following \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \tikzset{% ...
6
votes
1answer
94 views

Draw tangent of an arbitrary curve at intersections

I have this picture: and I want to draw a tangent line at each of the marked intersections. I have found some answers (and examples in the TikZ manual) using the decorations.markings library. The ...
7
votes
1answer
165 views

How to fill a solid defined by x^2+y^2<=9, z<=16-x^2-y^2 and z>=0 using PGFPlots

I would like to draw the body D defined by x^2+y^2<=9, z<=16-x^2-y^2 and z>=0. We have to graph x^2+y^2=9, z=16-x^2-y^2 and z=0 with less opacity, and then fill (or use patterns) the ...
2
votes
2answers
121 views

Using functions like sine, cosine and tangent to calculate coordinates in Tikz

I am learning TikZ with the pgfmanual. The example given is as follows: I have achieved the following so far: The code is as follows: \documentclass{article} \usepackage{tikz} \tikzset{help lines/....
5
votes
1answer
105 views

Intersection library and Differential approximations

Hi everyone I am looking for a smoother program using the intersection library to calculate where the tangent line intersects the vertical line of the x-coordinate of the second coordinate. I have so ...
5
votes
3answers
160 views

How to create a vertex at the intersection of two edges with tkz-graph?

I want to draw But I don't know how to create v_6 which is the intersection of \Edge(v_3)(v_5) & \Edge(v_1)(v_4) and v_7 is the intersection of \Edge(v_3)(v_5) & \Edge(v_2)(v_4). Here the ...
1
vote
0answers
67 views

Trouble with the intersection of 3 planes

I am trying to make a 3d plots as follows. This is my MWE: ‎\begin{tikzpicture}‎ ‎\begin{axis}[xlabel=$x$‎, ‎ylabel=$y$‎, ‎zlabel={$z$},legend pos=outer north east,z post scale=1.1,grid=both,view={50}...
2
votes
3answers
163 views

Intersection of a circle and a line “path”

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[ plotmark/.style = {% solid, fill = red, circle, inner sep = 0pt, minimum size =...
1
vote
1answer
27 views

Problem With Horizontal tangent

I am trying to figure why the tangent to the right looks slightly tilted whereas the other to the left is doing what it is suppose to do? \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
2
votes
1answer
47 views

Color ellipse intersection

I try to color the interception of two ellipses as simple as possible. I found some examples here: Draw ellipses with different coloring for their intersection in tikz? But I'm not sure how to ...
1
vote
1answer
47 views

filling segments by intersection method: there is no named path called

I'm just trying to fill each peripheral segment of my drawing. The names of the hexagon and the circle are test and circ. Additionally, the line pieces connecting edges of the hexagon to the outer ...
1
vote
1answer
40 views

Tangent Lines Intersecting Curves

Why I am only getting one point of intersection read by the program? Solution is to breaking to two parts with tangent lines drawn at different lengths. \documentclass{article} \usepackage{tikz} \...
7
votes
4answers
408 views

Tangent Lines Diagram Along Smooth Curve

I am trying to replicate a diagram and have a minimal example. I don't know how to add additional tangents between the specified points and preserve smoothness. \documentclass{article} \usepackage{...
3
votes
1answer
74 views

Finding an intersection with respect to the decoration

in Naming nodes in a decoration and draw lines from node to node I asked a question, which was answered. The most help was the following. \documentclass[tikz,border=3.14mm]{standalone} \...
2
votes
1answer
47 views

Naming nodes in a decoration and draw lines from node to node

thanks for taking the time. I have the problem, that I want to get normal vectors on a smooth plot, furthermore I have lines intersecting said plot, but they also need to end in the graph. My approach ...
2
votes
1answer
161 views

Tikz name path problems: No shape names is known

I seem to struggle already with the simplest use case of name path in Tikz: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} ...
5
votes
1answer
101 views

Problem with intersections: No shape named intersection-1 is known

When I compile the following code I get the error Package pgf Error: No shape named intersection-1 is known. How can I fix it? \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{...
1
vote
2answers
48 views

Drawing path from intersection of two paths to origin of those two intersecting paths

I have two paths which are to be drawn with dotted lines (shown in figure) and they intersect at some point C. Now I need to draw a resultant path of these two paths with solid lines. The resultant ...
4
votes
2answers
75 views

Interactions between intersections, fillbetween and axis equal

Please be patient, this is a bit complex. I encountered some weird things when trying to answer this nice question. Start with the MWE \documentclass[tikz,border=3.14mm]{standalone} %\usetikzlibrary{...
1
vote
0answers
55 views

foreach and intersection

what's wrong with my code? The usage of the foreach loop instead of the direct draw commands leads to an error that the path is not known. Do you have any suggestions? Thanks a lot in advance! ! ...
2
votes
1answer
39 views

Tikz - Use two coordinates in single command

MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds,matrix,patterns} \begin{document} \begin{tikzpicture} \draw[<->] (0,8)--(0,0)--(...
1
vote
1answer
45 views

Tikz \path command - use second intersection

I am aiming to produce the following diagram: Here's an MWE which almost does that: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds,matrix,...
10
votes
4answers
644 views

How to fill space between dotted lines in tikz picture?

I'm trying to fill an area between two dotted lines. I tried a lot of options, but none of them seem to work. I labeled the areas I need with the specific colors to fill. My current code is: \...
3
votes
3answers
151 views

Arrows at intersection in TikZ

I want to have the arrow tips on the intersection between the rectangle and the lines. Here I've got a M(N)WE: \documentclass[border=5pt,tikz]{standalone} \usetikzlibrary{intersections} \begin{...
2
votes
0answers
168 views

Draw feasible region between constraints (TikZ and pgf) [closed]

I'm trying to shade the feasible region ABCDE but for some reason, only get a weird line. This is the code: \begin{tikzpicture} % axes \begin{axis}[axis on top,smooth, axis line style=very thick, ...
4
votes
1answer
230 views

How to draw intersect of line sphere?

How to draw intersect of line sphere?
7
votes
1answer
99 views

Visibility of path names declared in \foreach loops

Buildup Basic setting Using the intersection library, I encountered some behaviour of path names that I do not understand. The following works in the intended way: \documentclass{scrartcl} \...
3
votes
1answer
90 views

PGFplots: extract coordinates, assign to global with dynamic name

I would like to loop over nodes, extract their coordinates in the axis coordinate system, and assign these to dynamically named macros. (This is a followup on this and this.) Following this answer, I ...
6
votes
1answer
98 views

Problem with fillbetween pgfplots library and intersections

In this MWE \documentclass[11pt, oneside, landscape]{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{ calc, intersections, } \usepgfplotslibrary{fillbetween} \...
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'...
2
votes
1answer
157 views

Shading Circle Segments in a complex Venn diagram

I have a Venn diagram with some overlapping ellipses that I segmented into sections using lines. I want to use this to make a few figures, and I am wondering wether there is a clever / clean way to ...
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 ...
1
vote
0answers
61 views

Issue with Tikz Intersections [closed]

I am getting the error: TeX capacity exceeded, sorry [parameter stack size = 120]. Full MWE:: \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \usepackage{amssymb} \...
2
votes
1answer
126 views

TikZ intersection problem with PWM signal generation

Consider the MWE of a PWM signal generation based on this question. \documentclass[tikz, border=6mm]{standalone} \usetikzlibrary{intersections} \begin{document} \newcommand{\step}{.25} \begin{...
3
votes
2answers
121 views

Intersection Coordinates with \pgfplotspointgetcoordinates

I am trying to extract the coordinate of an intersection point (Int1) and add it to a plot as follows: \documentclass{standalone} \usepackage{amsmath} \usepackage{tikz, pgfplots} \usetikzlibrary{calc,...
2
votes
1answer
49 views

pgfplots: annotating some line segment outside the grid on the right or upper borders

I have the following plot for which I would rather prefer to display the marks of the 3 line segments outside the grid: . the 1 and 3 should be to the right of the right border, close to the ...
3
votes
1answer
91 views

How to fill the intersection among four curves?

In my problem, all curves are plot from data instead of explicit function. And what I want to do is to fill those little curved rectangles with different colors. How could I do it? Here is the tex ...
3
votes
1answer
87 views

Draw a tangent vector to the circumference path

SX](https://tex.stackexchange.com/), I'm learning Tikz's drawing and I desire to add the tangent vector in P. Explanation I used the first answer to draw these radii that limit the circular path and ...
6
votes
4answers
326 views

Determining point of intersection in a triangle

I'm finding it difficult to draw the triangle as in the figure below: I am not being able to determine the "E point". Consequently, "A point". The lengths do not matter, but the angles. The DB ...
4
votes
1answer
91 views

How to reverse an intersection segment in TikZ (not pgfplots)

In a way, this is just a reminder of an old unsolved question but arguably with some new insight or tilt. (And I do not think the actual question is a duplicate of the old one.) The fillbetween ...
4
votes
1answer
64 views

tikz: Bug in 'intersections' library when naming paths inside loop?

I draw two circles and name their path inside a \foreach loop. Trying to name intersections of these two paths throws an error unless I name a third path. \documentclass{article} \usepackage{tikz} \...
4
votes
1answer
80 views

Can someone help me doing 2 points of intersection?

i wanted to draw a cissoid curve using tikz. i managed to get this far: however, i didn't manage to add visualizations of the 2 intersecting points between the big circle and the blue line and the ...
2
votes
2answers
180 views

Tikz : Extend an inclined line

is it possible to ask tikz to extend an inclined line (not parallel to x and y) to a value xmax or ymax as is done between a horizontal and a vertical line. i know it's feasible by having the ...
17
votes
2answers
524 views

How does TikZ sort intersections?

I used the sort by key for intersections to sort along a line, expecting the intersections to be numbered 1 through 5. Why were they numbered 4, 5, 3, 1, 2? Playing around with it, I could not seem to ...
4
votes
2answers
99 views

TikZ miscalculates some intersections, dimension too large

I want to draw some arcs inside a circle: they go from angle (120i+30)/2^j to (120i+90)/2^j for all i,j. I compute them with TikZ as follows: \documentclass{minimal} \usepackage{tikz} %\usepackage{fp}...
24
votes
1answer
473 views

Problem with interesting recipe format

I was wandering through the internet and came across http://graphicalcooking.co. An attractive format, and I said to myself, "TikZ can do that!" And so it can. I wrestled with this this morning and ...