# Tagged Questions

{coordinates} is about using coordinates in {diagrams}.

722 views

### Is there a better way to do intersections and calculations with relative coordinates in TikZ?

I've been doing many TikZ diagrams lately and every so often I encounter a situation where I am forced to use some temporary coordinate in a \path. In the following short example, the problem is ...
2k views

### tikz, tikz circuits, relative coordinates

I am trying to draw a dimensioned line, <---- 2 cm ---- > in the x, and y directions on a circuit diagram. Using absolute coordinates, there is no problem. However, the display is faulty using ...
571 views

### Tikz - How to determine the coordinates in fill

How to create Candle Symbol in LaTeX I previously asked a question about making candle light and got amazing answers. To todd's answer I have another question which would help understand basics of ...
3k views

### Using TikZ absolute coordinates

I wonder is that possible to use absolute coordinates regarding all document? Please see my example \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \filldraw[red] (...
200 views

### Pgfplots: How to get the data to be shown by hours instead of days? [duplicate]

Possible Duplicate: pgfplot: Datafile format for datetime field The solution to the following problem is probably very straightforward, but I've yet to find the right solution. I'm trying ...
496 views

### How to create a macro with two or three ;-separated arguments?

I want to create in 2D a point with \defpoint(1;2){A} and in 3D with \defpoint(1;2;-5){A}. I prefer a solution with TeX but it would be interesting to see if LaTeX3 is useful in this situation. I ...
3k views

### Coordinates A, B: compute |B-A| and angle between +x and (B-A)

This question has two parts: why is the angle computed always 0 (should be 45) what is a straightforward way to compute distance between coordinates (there is How can I compute the distance between ...
6k views

### How can I compute the distance between two coordinates in TikZ?

Given two points (defined, for instance using nodes), I want to compute the distance between them. Is there some build in functionality in tikz to do this? If not, how can it be done using the ...
497 views

### Global Coordinates

How can I declare coordinates in a block and access them from outside of the block? \begin{tikzpicture} \foreach \x / \y in { 1 / 3, 2 / 8, 3 / 14, }{ \coordinate (N\x) at (\x,\...
140 views

### How to use trigonometric functions in tikz coordinates [duplicate]

Possible Duplicate: Problems with TikZ calculations I am trying to get the following arrows to get lengths defined by a trigonometric function, in this case cos. This was my attempt, but it ...
11k views

### Problems with TikZ calculations

When can I use functions and do calculations in TikZ? How do I make this work: \draw (0,0) arc(0:90:sqrt(15)); %not ok why is this working: \draw (0,0) arc(0:asin(1):5); %ok with \usetikzlibrary{...
4k views

### How can I express half the distance between two nodes?

I want to draw a line from node A half-way to node B in TiKZ. How can I find express the end point?
472 views

### With TikZ, How do I use a labeled coordinate that's inside a node?

In the following diagram, I'm trying to draw a line from the center of the red dot (inside the blue node) to the green node. The coordinate of the red dot is labeled "thepoint", so this should be easy....
740 views

### use the coordinates of an axis tip with pgf plot

here's a drawing I just made (the sine function are replaced by external datas) \documentclass[12pt]{article} \usepackage{pgfplots} \usepackage{tikz} \usetikzlibrary{through,calc,arrows,decorations....
386 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 ...
729 views

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

In another question concerning Access to logic coordinates on Accessing the logic values of a TikZ coordinate I used these functions, until I came to a scaled tikzpicture and then it was off. I now ...
89 views

### Equivalent of \providecoordinate?

I am looking for something that is the equivalent of \providecoordinate in TikZ/PGFplots. This would be easy if I knew how to test if a coordinate is already defined. There are similar questions ...
4k views

### How to make a textbox with this TikZ code ?

I made this with TikZ : \usetikzlibrary{calc} \def\banlen{3} \xdefinecolor{mycolor}{RGB}{62,96,111} % Neutral Blue \def\bancolor{mycolor} \begin{tikzpicture} \draw (0.25,0.25) rectangle (5,-2); % \...
733 views

### Referring to tikzpicture center

How I can refer to the current or some other tikzpicture's center? Is there anything like (current picture.center) or (previous picture.center)? I'm asking about straight solutions, not requiring to ...
8k views

### Transforming coordinates, so (0,0) from tikzpicture is put in the desired place of the page

In tikz I can perform absolute positioning, e.g. (current page.center), but how I can specify/transform the coordinates, so (0,0) within tikzpicture will end in well-defined place like center of the ...