5
votes
2answers
299 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
85 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
158 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); ...
3
votes
1answer
94 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 ...
2
votes
1answer
139 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 ...
6
votes
1answer
270 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
137 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
284 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
152 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
182 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 ...
1
vote
3answers
570 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
147 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} ...
2
votes
1answer
170 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
118 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
697 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
430 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
208 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
538 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
328 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
324 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 ...
5
votes
2answers
216 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
431 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
242 views

How to find intersections between line and rectangle with rounded corners

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
22 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
342 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 ...
11
votes
1answer
363 views

How to decorate a path with arrows at certain coordinates?

Next example (taken from TiKZ manual) shows how to find intersection points between two paths. Once you know intersection points it's easy to decorate them with any marking. But if I want to use an ...
10
votes
2answers
1k views

Intersection of 2 surface plots in pgfplots

My question is pretty much a duplicate of this one. I'd like pgfplots to display the intersection between tho surface plots properly. Unfortunately, my function is quite different from the one in the ...
4
votes
1answer
72 views

Why two macros in intersections are not expancded?

Two path names inside intersections are not working. Only one macro seems to work. I have tries all the combinations of macro expansion but in vain. In the following 'h\x and \vy' is not working. It ...
3
votes
2answers
443 views

Make line extend beyond endpoint and intersect with line

Is it possible to have a line go through two coordinates and then extend until it intersects with another line? The line in question is not horizontal nor vertical (otherwise I could use the ...
9
votes
2answers
440 views

Tikz — Rotating a line around an intersection

I've been trying to rotate a line around an intersection. The problem (I think) is that the intersection is in a previous scope (I need that to have the correct clipping), and the new scope doesn't ...
6
votes
1answer
278 views

TikZ Intersection missing the true intersection slightly

I'm having issues with the intersection feature. It works, but it seems to "miss" the true intersection a bit. The code below produces the error for me. See this image (can't post it directly because ...
3
votes
1answer
241 views

Lines generated with TikZ intersections are too short

My script calculates several intersections of lines (green) with a vertical "wall" (not shown). The intersections (small red dots) are fine. But the lines from one intersection to another intersection ...
8
votes
3answers
596 views

Intersection of lines to draw a convex function

I'm trying to draw (in TikZ) a convex function f constructed as the minimum of the linear functions f1, f2, f3 and f4. To do that, my inclination is to use the intersections of said lines to find the ...
7
votes
1answer
423 views

tikz intersection fails in combination with the library calc

In the second example I am trying to work the the library intersection. It works fine as long as I don't use the calc library. The first example shows my intention. I am using ($2*(w1')$) which ...
7
votes
3answers
2k views

How to Intersect an arc with a line without calculating the angle

I'd like to draw an optics-related figure, for which I need to draw several beams with varying opening angles, which will need to be labeled. What I've come up at the moment (boiled down to a minimal ...
11
votes
2answers
2k views

Coordinates of intersections

In axis environment I have a curve and a line intersecting it. How can I get components of intersection-1, intersection-2 etc. in axis units? \documentclass{minimal} \usepackage{pgfplots} ...
2
votes
1answer
163 views

finding points on path with given x-coordinate (marking f(x) points for given x's)

A y=f(x) function is given as path; for a set of x-coordinates, I want to place node (x,f(x)) onto the path, and connect it with (x,0) with vertical line. I have not got very far myself: \tikz{ ...
10
votes
3answers
4k views

TikZ: Intersection of two lines

what is the easiest way to determine the intersection of two lines? I tried \usetikzlibrary{intersections} \begin{tikzpicture}[every node/.style={black,above right}] \draw[name path=line 1] (0,0) -- ...
4
votes
1answer
295 views

More: Generalised: Accessing the logic values of a TikZ coordinate

This is a follow-up question to: Generalised: Accessing the logic values of a TikZ coordinate. In that question a PGFplot answer was suggested by jake. I took that answer and modified it to the ...
5
votes
1answer
1k views

How do I name a plot in tikz and use it for intersections?

I want to create a figure with 3 plots, a vertical reference line, and marks at the intersections of each plot with the reference line. The plots come from an external table. Plotting works, but ...
9
votes
2answers
2k views

Insertion of perpendicular symbol at intersection of two perpendicular lines

This provides good details on How to draw a line passing through a point and perpendicular to another?. What I would like to do is to extend this somehow to add the usual geometry symbol to indicate ...
4
votes
1answer
480 views

How to specify a name path for the axis in PGFplots

When I use the {axis} environment, the axis are drawn automatically so I am not able to specify a name for them? I would like to be able to compute intersections with the axis as in Intersections in ...
6
votes
1answer
389 views

Is there a way to clear paths previously defined with name path global in TikZ

In the solution to Intersections in PGFplots it was pointed out that each \addplot command was drawn in its own scope and using name path would not survive outside of that \addplot command. The ...
4
votes
0answers
762 views

Drawing tri-axial ellipsoid and intersecting it with a sphere [closed]

I would like to draw a tri-axial ellipsoid (that is, an ellipsoid with three different main axes). I'd also like to draw a sphere in the same picture, showing the curves of intersection between the ...
7
votes
3answers
584 views

Bad intersection of lines in TikZ

Consider the following: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line width = 4] \coordinate (a) at (0,0); \coordinate (b) at (1,0); \coordinate (c) at (1,1); ...