Linked Questions

37
votes
3answers
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 ...
14
votes
4answers
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,...
13
votes
3answers
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 \...
10
votes
3answers
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)} \...
9
votes
4answers
947 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{...
11
votes
2answers
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 ...
11
votes
3answers
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 ...
7
votes
2answers
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 ...
5
votes
3answers
752 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} \...
6
votes
5answers
760 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 ...
8
votes
2answers
547 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....
0
votes
3answers
2k views

How to draw a tangent line to the following curve?

I want to draw the following diagram Here is my MWE: \documentclass[border=3mm]{standalone} \usepackage{pgfplots} \pgfplotsset{width=8cm,compat=newest} \begin{document} \begin{tikzpicture} \...
9
votes
1answer
567 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 ...
9
votes
1answer
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 ...
6
votes
2answers
939 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 ...
14
votes
1answer
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,...
4
votes
2answers
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 \...
5
votes
1answer
460 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{...
4
votes
1answer
954 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 ...
5
votes
1answer
604 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,...
7
votes
1answer
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{...
4
votes
1answer
140 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/(...
5
votes
1answer
220 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 ...
3
votes
1answer
628 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,...
6
votes
1answer
161 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 ...
2
votes
2answers
185 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? ...
8
votes
1answer
471 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 ...
2
votes
1answer
179 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 ...
3
votes
2answers
94 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,...
1
vote
1answer
253 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 ...

15 30 50 per page