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

learn more… | top users | synonyms

10
votes
1answer
95 views

Rotating tikzpicture messes up intersections

I'm working on a picture using TikZ and I'm using intersections to draw some points (the $α(t_{j+i}$). I saw that the picture would fit better into the page if I rescaled it and rotated 90 degrees, ...
2
votes
1answer
26 views

Wrong intersection and position computations \anchorborder of \pgfdeclareshape

I'm trying to define a "labeled icon" shape (LIS), that is an icon (drawn with pgf commands, but replaced by a simple rectangle here for simplicity) with a label that is stuck to the icon (not the ...
2
votes
1answer
72 views

Tikz: Finding intersection of Brownian motion and circle

I'm trying to draw a two-dimensional Brownian motion started in a circle and now want to label the first exit time of the motion: \documentclass[parskip]{scrartcl} \usepackage{tikz} ...
2
votes
2answers
79 views

Tikz intersection of lines with unnamed points?

This works: \draw (0,0) coordinate (A); \draw (1,1) coordinate (B); \draw (1,0) coordinate (C); \draw (0,1) coordinate (D); \coordinate (X) at (intersection of A--B and C--D); but this doesn't: ...
5
votes
1answer
125 views

How to draw in pgfplot until intersection with plot line?

I am trying to draw an arrow from the left side of my diagram and until it intersects with the plot. However I get this error message: ! Package pgf Error: No shape named intersection-1 is known. ...
14
votes
1answer
385 views

Intersection of 5 ellipses

I would like to fill the intersection of each of my 5 ellisses with the same color (black for example). It works very well with two. But with a third or more, I don't know how to "save" the first ...
5
votes
0answers
72 views

\coordinate intersection does not work appropriately in TikZ

I was trying to use TikZ to sketch some graph but something weird happened. I was trying to use "intersection" to get the coordinate of the intersection of two lines, but strangely, there is always ...
6
votes
1answer
166 views

The intersection of a sphere with planes through an axis tangent to the north pole

I am trying to draw a picture of a very simple sphere - i.e. one big black circle with additionally, an equator indicated with solid line in front, dotted in back. on this sphere I want to draw a ...
3
votes
3answers
179 views

how can I use intersection points to draw a proper arc for my simple instance

I would like to join points (s) and (t) via arc. Could u help me to implement it?! I've tried it by such way \draw (s) arc (t); It is wrong! To say simply I need the correct arc without spreading over ...
6
votes
1answer
176 views

Am I able to intersect curves after rotating?

I would like to intersect arc and sloped line as it's discribed in the code after having rotated the sloped line. Why doesn't the red point belong to sloped line? I hope my question is quite clear for ...
5
votes
2answers
184 views

Sketching conic sections as intersections of cone and plane?

I would have thought this would be trivial, but I still haven't found an easy method. All I want to do is draw a cone, a plane, and their intersection (which will be a conic section). Something ...
3
votes
2answers
240 views

How to find coordinates of intersecting circles using TikZ?

I'm using code based on Tomas M. Trzeciak’s Stereographic and cylindrical map projections example to draw spheres. I have added three great circles to the sphere: The equator, and two longitudinal ...
3
votes
1answer
107 views

Self Intersecting Diagrams, PSTricks

Okay, so I have a self-intersecting curve drawn using \pscurve in PSTricks, and I would like the interestions to look something like -|- as opposed to +. I know it can be done using double lines in ...
0
votes
0answers
36 views

tikz 3D intersection of planes [duplicate]

I have got this figure in form of a PNG graphics. I can directly use it in my latex document. However, I would like to know if I can draw it with Tikz. I don't have much idea about two things - ...
2
votes
1answer
95 views

Do until there is no intersection point

I want to do a loop until there is intersection points between two paths edit I oblic lines until they don't intersect the circle. When there is zero intersection points I have an error. Is there a ...
3
votes
1answer
177 views

Stacking plots in animation using fill between library (with dynamic calculation of intersection segments?)

As a followup question to Filling the area under a graph based on intersection with another graph, I'm looking to create the following effect: Fill based on the coordinates of the intersection ...
7
votes
2answers
298 views

Filling the area under a graph based on intersection with another graph

I'm trying to produce this: But I can't get any further than this: This is my code: \documentclass{minimal} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{intersections} ...
4
votes
1answer
198 views

Pgfplot second intersection point

As it can be seen in the figure i added a line from the first intersection (y=2x and y=6-x) to x(2). But i couldn't add a line from second intersection (y=x and y=6-x) to x(3). i tried intersection-2 ...
4
votes
2answers
291 views

Shading area between curves

I am an old LaTeX user but just beginning to discover PGF and TikZ. I am trying to shade areas between 3 curves and from what I read I could do it with min and max functions, but forwhatever reasons ...
5
votes
2answers
418 views

TikZ: How to draw an helicoid and fill area below curve

I am trying to draw an helicoid and to fill the area below the curve. Since the aim of the figure is just to "give an idea", I would prefer to keep it simple and to avoid using PGFplots and GNUplot -- ...
6
votes
1answer
154 views

Fill from path to axis with tikz intersections

I am trying to represent parts of a plot that extend from a simple curve to the boundaries, but I can't find a simple way of creating the closed path from the intersection of two paths. I have seen ...
6
votes
1answer
203 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); ...
4
votes
1answer
270 views

tikz, intersection of four circles WITHOUT any fill, but text

Hej, I´ve got a problem with the following diagram. I want the intersection of all four circles to be white, not filled but transparent as there has to be a text in the intersection. I am ...
0
votes
1answer
301 views

How can I draw with coordinates of intersection in pgfplots?

When using pgfplots, the command \pgfgetlastxy works well without axis environment and with axis environment set as default. But it is hard getting the correct coordinate of intersecting, when ...
2
votes
1answer
193 views

How to calculate intersections of a line defined by a segment and an ellipse in tikz

EDIT Here's what I intended to ask, but didn't clearly formulate initially. The Tikz package intersections allows one to calculate and manipulate the intersection point of two non-parallel lines ...
5
votes
3answers
200 views

Drawing a segmented circle

I'm trying to draw another larger circle that is also centered at (0,0). In words I'd like to "walk out along the top horizontal arm to its halfway point, then draw a circle all the way around to the ...
6
votes
1answer
450 views

pgfplots intersection with path

I am trying to find the intersections of a path with plots from pgfplots via the intersection library. The intersections found clearly do not match the visable intersections. It seems as if they are ...
11
votes
1answer
187 views

Given four nodes forming a quadrilateral, how do I find the node at the intersection of the diagonals [duplicate]

I'm trying to find and name a node at the intersection of the diagonals of a quadrilateral formed by four other nodes. However, I'm not drawing a path. All I can seem to find in the tikz manual are ...
7
votes
1answer
373 views

TikZ doesn't find all intersections between plot and a line

Why doesn't TikZ find all intersections. They are obviously there … \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} ...
6
votes
1answer
212 views

Calculate the intersection between a path enclosed by a `scope` and another path

I have constructed a circle using the through package. I would like to create a coordinate at the intersection of this circle and another line. Is there a way to do this? I tried to name the path ...
7
votes
2answers
225 views

TikZ: naming paths in a \foreach and accessing them later

\documentclass[convert = false, tikz]{standalone} \usetikzlibrary{calc} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \coordinate (P1) at (60:4cm); \coordinate (P2) at ...
5
votes
1answer
267 views

How to find the intersection of two `path3[]`

I'm using Asymptote to draw some figures and I need to put a dot on the intersection of two path3[] but the command intersectionpoint() doesn't work for path3[]. What can I do?
1
vote
3answers
733 views

How can I draw tikz arrows on a calculated triangle?

I am going to need a lot of vector triangles and would like to do them with TikZ. My TikZ experience is close to not existing. Therefore I would like to ask you, if there is a possibility to draw ...
4
votes
2answers
173 views

Tikz: wrong intersection with axis

In the following code the dashed line that intersects with the y-axis is out of place and I don't know where I'm making the mistake (if there is any): \documentclass{article} \usepackage{pgfplots} ...
3
votes
1answer
248 views

TikZ: using the intersections library for normal vector

Consider the code: \documentclass[convert = false]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{calc} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[ ...
2
votes
1answer
136 views

TikZ: Why is the 2nd intersection not found?

I am trying to construct a tangent line to the dashed curve but TeX is telling me that No shape named intersection-2 is known. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc, ...
8
votes
3answers
1k views

Draw line from a point to another line (along x-axis or y-axis) in TikZ

I would like to make use of the intersection tools to draw a line to another line in a way that it only reaches along the x-axis or y-axis. I mean I currently think that I would achieve this via the ...
6
votes
1answer
602 views

TikZ: Drawing an ellipse through two points

I am trying to construct a portion of an ellipse that connects point P1 and P2 but I don't know anything about the ellipse besides that F is one of the foci. All I know is that an elliptic arc ...
4
votes
1answer
276 views

Tikz: Drawing a line from a focus to the edge of an ellipse

This question is similar to Tikz: connecting two vectors from the focus of an ellipse to the edge but not the same. In this instance, I want the the length of line to be a specific distance. If ...
4
votes
1answer
888 views

Tikz: drawing a line to the edge of a circle

If I wanted to draw a line to the edge of a circle, I could simple do the following \pgfmathsetmacro{\a}{2} \draw (0, 0) circle (\a cm); \draw[-latex] (0, 0) -- ({\a * cos(angle)}, {\a * ...
6
votes
1answer
503 views

Tikz: placing a node at the intersection of two circles along a hyperbola

I know one can use the intersection package to find the point of intersection but I don't understand how to do it yet. I would like to label the increasing order of the intersections F^*_2, F^*_1, ...
9
votes
1answer
408 views

Drawing little semicircle to show that two intersecting lines are not connected [duplicate]

I want my diagram to show that two intersecting lines are not actually connected, but one passes above the other. The best result I would like to achieve would be a small semicircle as used in ...
2
votes
1answer
94 views

Problem numbering chapter, sections [duplicate]

I'm trying to write something in LaTeX, I would change the style of my paragraph numbering. I would have this: ** My PDF ** My Chapter I My section 1 My section 2 To do so, I put ...
5
votes
2answers
281 views

Highlighting intersections

I would like to highlight the region C in the Euler diagram below. I tried to play around with fill opacity command, but I was not able to highlight C alone. Should I use the intersections libraries ...
11
votes
2answers
1k views

Crossing paths in TikZ without intersection

Once again, I'm preparing a new logic puzzle; Resuko to be precise. For the race track, I would like to have a symbolized bridge/underbridge -|-. I searched this site, but only found this question: ...
5
votes
1answer
626 views

Right Angle Symbol Alignment with TikZ/Calc

I used a solution from @Jake from this post Insertion of Perpendicular Symbol at Intersection of Two Lines, but the alignment is not quite right. I have my suspicions why, but I don't understand the ...
2
votes
0answers
295 views

How to find intersections between line and rectangle with rounded corners [closed]

I'm trying to display a line "under" a rectangle. For this I tried using the intersections package, but somehow I the line doesn't stop: \documentclass[a4paper]{article} \usepackage{tikz} ...
2
votes
0answers
26 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 ...
7
votes
1answer
420 views

ellipse intersecting a circle

I am trying to draw an ellipse which intersects the sphere of influence, that is, the dashed circle around the moon. The ellipse needs to pass through (-170.864:.7cm) location along the v0 vector and ...
9
votes
1answer
193 views

Avoiding line intersection

i wanna do something like that: Non-intersecting lines on class diagram with that: http://www.texample.net/tikz/examples/oxidation-and-reduction/ It will be something like: