7k views

### How to draw tangent vectors and component vectors on a curve

I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have ...
2k views

### Storing and re-using tikz coordinates for position and tangent vectors

The following code \documentclass[border=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \usetikzlibrary{arrows,backgrounds,patterns,shapes.geometric,calc,...
1k views

### Tangent on parabola

I really was working on this now for a long time. I need a tangent line on a parabola; here is my working example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{arrows,calc,...
6k views

### Line tangent to a a curve (using plot or controls), starting at a point

I need to draw lines that are parallel to a curve starting at a point. The curve could be a curve drawn using 3 point as my example below did, but alternatively could be a curve drawn using the \...
1k views

### Using \foreach inside a draw command using TIKZ

I'm brand new to using \foreach but not coding in general. Following the code in answer number 40 of this example: How to draw tangent line of an arbitrary point on a path in TikZ How can I properly ...
2k views

### Typesetting a directed hypergraph in tikz

Similar to several other questions, I am trying to draw hypergraphs in tikz. I want to draw a directed hypergraph that looks something like those in this image from here: As opposed to other ...
2k views

### How do I make tangents to ellipses and lines parallel to these?

I have specified an ellipse and three points in the following way: \def\aa{2.5} \def\bb{2} \draw[thick] (0,0) ellipse [x radius=\aa,y radius=\bb]; \pgfmathsetmacro{\focus}{sqrt(\aa*\aa-\bb*\bb)} \...
995 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{...
569 views

### How to get a tangent coordinate system for the decoration of a path?

I want to draw some lines in a tangent coordinate system of the decoration of a path. Especially I want to draw a tangent segment at the end of the decoration with full controll, i.e. with having the ...
1k views

### How to draw tangent lines at control points of a path in TikZ?

I'm drawing smooth paths by using the \draw plot[smooth, tension=.7] coordinates ... command. Now I would like to draw tangents at the specified coordinates. I alreade tried Jake's answer, but I ...
550 views

### TikZ:How to consider a curve as an axis in a chart?

In the shown image bottom and left lines are considered as axis...:How to consider left curve as an axis in the chart? Psychrometric charts: http://en.wikipedia.org/wiki/File:PsychrometricChart....
473 views

### Automatically place right angle indicator on normal vector

I'm trying to draw a normal vector on a curve, and use the usual "dot in an arc" symbol to indicate that. Here is what I have so far, which looks alright, but needed manual adjustment of angles and ...
1k views

### Highlight and use arrows in an equation In a robust manner

I am trying to give a very simple analogy to what I am trying to do with LaTeX. I simply want to write two vectors, one below or next the other, and then, use nodes to link the last two elements of ...
247 views

### How to increase the accuracy of \psTangentLine?

I want to draw the tangent line as well as the normal line for an arbitrary curve as follows. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{...
766 views

### Add a second label to a path in an automaton

Friends, consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[shorten >=1pt,,node ...
948 views

### tikz decorations.markings cause 'dimension too large'

I want to draw a bunch of smooth curves with arrow in the middle. So I have to combine decoration and smooth options. However, both options result in dimension too large error. If I remove smooth ...
167 views

### Extending a tangent line until x and y axes

I want to draw a graph that contains the following elements: A downward-sloping curve in the northeast quadrant of a 2d Cartesian plane; a line tangent to an arbitrary point on this curve; and the ...
790 views

### Tikz and Secant Line diagram

Hi I am looking for feedback to improve an existing program PLUS advice for a desired diagram in the same direction. Here is my minimal example: \documentclass{article} \usepackage{tikz} \...
225 views

### Plot that demonstrate Newton's method

I am preparing some slides for numerical method classes. I have difficulty identify the best package to draw plot like below I know there is software like Geogebra, but I prefer to do within latex. ...
226 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 ...
464 views

### How draw lines at certain angle on a function graph in TikZ

How can one draw orthogonal tick marks on a function? For instance in the following plot I would like to make orthogonal tick marks on the function y=x^2, say. \documentclass{article} \usepackage{...
617 views

### Scale a decoration in TikZ

Let's suppose a drawing that uses a simple decoration (for illustration, let's say a simple spring): \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,patterns,decorations.pathmorphing,...
354 views

### Drawing two vectors at a precise point of a curve

I have drawn the following figure. \documentclass[a4paper, 11pt]{book} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{arrows} \usetikzlibrary{decorations.markings} \makeatletter \...
147 views

### Draw derivative tangent at specific Point in Tikz

following Code: \begin{figure}[htbp] \centering \begin{tikzpicture}[yscale=2,domain=0:16,samples=500] \draw[tkblue,thick] plot (\x,{1-exp(-0.45*\x)*(cos(deg(sqrt(1-0.0001)*\x))+0.3/(...
90 views

### “Straight” (tangent) connections to both ends of Bézier curve

I would like to draw a relatively thick Bézier curve that goes all the way to the edge of a rectangle. In the MWE below, the eventual clipping boundary is represented by the drawn rectangle. I like ...
966 views

### Put node on ellipse in tikz

I'm trying to make a simple drawing in tikz consisting of: An ellipse Some label inside the ellipse Another label near the curve An outer normal vector to the ellipse, again with a label Producing ...
95 views

### Tangent line to conic

I have an ellipse and I would like to draw a tangent to it in the point A, but I have no idea how. \documentclass{standalone} \RequirePackage{tikz} \usetikzlibrary{calc,through,arrows,fadings,...
103 views

### Plotting Normal distribution and tangent line in pgfplots

I'm trying to reproduce the following diagram in pgfplots. My MWE with regenerated graph is below: \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{positioning} \pgfmathdeclarefunction{...
629 views

### Arrow scaling problem. How can I zoom properly a very tiny part of a drawing?

Thanks to this solution, I can draw tangent line to a path. I'd like to zoom a very little part of my drawing. Here it is the code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,...
110 views

### How to recreate the following diagram? [duplicate]

I want to recreate the following diagrams Here is my MWE \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,intersections} \begin{document} \begin{tikzpicture} \draw [->, ...
197 views

### Drawing a graph like the following

I want to try to draw a graph in TikZ like the following one For now, I have no idea how to approach without getting messy. Are there any helpful packages? Do I have to draw every line individually? ...
68 views

### How to ensure that perpendicular lines appear perpendicular in TikZ

I am drawing a figure to illustrate the relationship between a curve, and its tangent and normal lines at a point. Due to the nature of the curve (cubic polynomial), I'm manually adjusting the x- and ...
144 views

### Making a Table (Matrix) with Tikz

I need to get start with making a matrix in Tikz. I need to study the manual but need some help with an example to get started. My minimal example is very poor but it is the best I can do without ...
181 views

### Adding text in TikZ-picture at position determined by combining tangent and intersection

Question How to add text to arbitrary positions in TikZ-pictures relative to certain objects (maybe even following their shape) ? Situation I have combined two solutions to Tikz-questions found ...
272 views

### Normal and tangent vector at specific absolute rather than relative point

I would like to draw a normal vector on a curve at a specific point. I looked up several questions (e.g. 1, 2, 3, etc) and the answers contain nice solutions for drawing a tangent or normal vector to ...
163 views

### How to draw the tangent vector at one endpoint of a curve

I would like to draw with the package tikz a smooth curve (not closed) and I would like to draw the tangent vector at one of the endpoints. I haven't had nice results so far. I used the library ...
254 views

### Draw a curve in TikZ with hairs growing on one side

I would like to be able to draw tikz pictures that generalize the following one: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) to (1,0); \foreach \n ...