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
1answer
72 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 ...
2
votes
1answer
49 views

tikz: draw on top of spy

I want to draw on a tikz-spy and the new line should be covering the ones copied by the spy. E.g.: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{spy,shapes} \pgfdeclarelayer{bg} % ...
0
votes
1answer
59 views

Draw a line flying across shapes and text content

I want to draw a line between 2 nodes which may fly across existing shape and text content. In the example below, the line connecting a and b are intersecting with the label of init node. I can ...
0
votes
1answer
39 views

TikZ does not accept intersection names other than `intersection-1` and `intersection-2`

Here is my MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usetikzlibrary{intersections} \begin{document} \begin{figure} \begin{tikzpicture}[scale=3] \draw[name path=...
1
vote
1answer
46 views

How to make so that the calculation of an intersection is correct during a change of scale?

I need to modify the scale of a diagram, but then the calculation of the intersection of two lines is wrong \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,intersections} \...
2
votes
0answers
94 views

Draw tangent to curve at intersection

I am trying to see if there is any way to simplify the following code: I have several functions, and one line. I would like to draw the tangent of each functions where they intersect the line. ...
1
vote
2answers
46 views

Why in the TikZ code it produces two similar side by side results where shift is set 0 cm

In this code below \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \clip (-0.5,-0.75) rectangle (3.25,2.25); \foreach \pathname/\...
1
vote
1answer
45 views

How to add many point of intersection to a TikZ picture?

The following code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \a/\text in {0/,60/,120/,180/,240/,300/} \draw[] (\a:1cm) circle (1.5cm) node[right] ...
0
votes
1answer
40 views

Drawing vertical lines from given x-axis values to frequency curve intersections, then to the y axis

I have a frequency curve as in the figure below: I need dashed lines that can help to estimate number that scored between 42 to 76. My questions are I need to draw two dashed vertical lines from 42 ...
0
votes
0answers
39 views

how to automate intersections resolution on an image?

Say I have 1000 edges. some of them intersect. Is tere a way to automate intersection representation? like they do in here for one intersection yet for all lines on an image (order does not matter for ...
0
votes
0answers
35 views

Dimension too large after updating MikTeX

I have a LaTeX file which was compiled without any error until I recently updated the MikTeX package. Now I get error Dimension too large. five times. I suppose this is some bug which appeared ...
0
votes
1answer
48 views

Reproducing intersection of two curves in tikz

I am looking to reproduce the figure below using tikz: The codes that I have aren't producing this figure exactly. \begin{tikzpicture}[nodes={text height=0.7em,text depth=0.25ex}, my arc/.style={...
1
vote
1answer
64 views

Problems when I try to concatenate intersection segments

I try to draw the next figure: So, I create two paths "background" (the low curve) and "resonance" (the spikes) in this code: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{...
4
votes
3answers
167 views

Intersections in Tikz and pgfplots

starting from a fixed y-axis, I would like to plot the intersection of a constant y-axis line with a curve, then plot the vertical at the point of intersection and calculate the corresponding x-value, ...
0
votes
0answers
35 views

Underfull \hbox (badness 10000) in paragraph in a EUSFLAT2019_template.tex [duplicate]

I have downloaded on my local machine eusflat 2019 template for paper https://www.overleaf.com/latex/templates/eusflat-2019-template/jmqvcrhkqhgx and using it in miktex following section in ...
3
votes
1answer
70 views

pgfplots option 'compat=newest' causes crash with intersections

Until yesterday I could regularly use the code reported in this answer to draw a circle right at the intersection of two lines. Today the exact same code has suddenly stopped working. The crash is ...
0
votes
0answers
28 views

3DPlot of function gives back wrong function?

I do not understand why the function {x^3} in my plot is not an elliptic but somehow linear. For y^3 it worked out fine. Did I miss sth.? Or do you have a better idea for an elliptic function which ...
0
votes
1answer
189 views

Label intersection point of two curves in pgfplots

I want to label the intersection point of the green and red curve. Anything I tried didn't work. Can somebody help me? This is my code so far. \usepackage{pgfplots} \pgfplotsset{compat=1.11} \...
7
votes
1answer
80 views

Multiple intersections problem

Imagine you draw two lines like: Now imagine you want to draw crossing jumps for the blue line over the red line. You may write the same code as me: \documentclass[a4paper,12pt]{article} \usepackage[...
2
votes
1answer
52 views

Intersecting and drawing of intersection

I am trying to replicate these diagrams (Samuelson-rule) in Latex. I haven't understood how the calculate the intersection of graphs and how the draw links between two diagrams. This is my result so ...
2
votes
1answer
68 views

Cased edges in gap-planar graph (intersections, redraw path)

For illustrating my thesis on k-gap-planar graphs I'd like to find an elegant and parametrizable way to produce drawings of such graphs with cased edges (to make clear to which of the edges the ...
1
vote
1answer
145 views

Fill space between three \draw lines with arbitrary intersection points

I would like to fill the space between the three curves in this MWE \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=3] \...
3
votes
1answer
131 views

Use named paths inside a scope for intersections outside the scope?

I need to: draw an ellipse, name it so I can intersect it later, clip it. To accomplish 3, it seems most appropriate to use a scope, but this means that I cannot accomplish 2. Consider this MWE: \...
0
votes
1answer
74 views

Clipping an horizontal line in a bell shaped curve

In this figure there are two horizontal lines which I have tried to adjust to the ends of these lines to the bell shaped data curves, \documentclass[border=0.5mm]{standalone} \usepackage{amsmath} \...
3
votes
2answers
80 views

Naming line intersection and using it later

I have drawn tangents to my ellipse, and I would like to find the intersections of those tangents and connect them into a line. I know how to make that line, but I don't know how to get those ...
4
votes
2answers
108 views

dash path between two intersections with other path

I wish to dash the red path when it is between the intersections with the blue path. How can I do this using paths names? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \...
1
vote
2answers
149 views

Create intersect for Venn diagram and resize circles to adjust to box size

Problem: Two minor issues which I have not been able to solve. How do I fill the intersection for the second figure (on the right)? How do I create "padding" or more "air" around the circles in each ...
2
votes
1answer
77 views

Create dashed intersections with labels using pgfplots and tikz

Problem: I have several minor issues that I can not seem to be able to solve. Add and position labels to x/y-axis Add dashed intersections Show x/y-axis numbers for -1 and 1 Minimal Working Example ...
1
vote
1answer
139 views

How to add horizontal, then vertical shorts in circuitikz

I've noticed that in circuitikz, while the regular tikz lines of horizontal-then-vertical (-|) and vertical-then-horizontal (|-) lines work fine when joining two items with different absolute ...
1
vote
0answers
46 views

Sequence of TiKz intersection points [duplicate]

To get intersection points of help lines and a line, I wrote the following code. \documentclass[margin=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,intersections} \begin{document} ...
1
vote
1answer
57 views

tikz can not find the intersection [duplicate]

Hello I do not understand why tikz can not find the intersection of the curve and the right? thank you \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc,intersections} [!...
5
votes
3answers
541 views

How to draw with Tikz a chord parallel to AC that passes through a point?

I've drawn the following diagram with Tikz: The code used: \documentclass{standalone} \usepackage{pgf,tikz} \usetikzlibrary{babel,calc,arrows,shapes.geometric,intersections,through,backgrounds} \...
0
votes
2answers
45 views

Labeling distinct points of a line and circle using “intersections package”

The following code renders five circles, each circle intersecting one or two other circles, and a line segment PQ. Line segment PQ intersects each circle twice. How do I label the intersection of the ...
1
vote
1answer
116 views

Automatically draw nodes at all intersections (for graph crossings)

I use TikZ to draw (undirected) graphs, but sometimes I would like to be able to mark where all the intersections/crossings are automatically. I understand that the TikZ intersections library has the ...
2
votes
2answers
291 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{...
8
votes
2answers
219 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 ...
2
votes
1answer
67 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
521 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 ...
4
votes
2answers
127 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{% ...
5
votes
1answer
224 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 ...
6
votes
1answer
282 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
2k 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/....
6
votes
1answer
168 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 ...
4
votes
3answers
313 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
99 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
300 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
40 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
114 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
92 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
68 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} \...

1
2 3 4 5