{coordinates} is about using coordinates in diagrams.

learn more… | top users | synonyms

5
votes
1answer
307 views

tikz coordinate calculations gone wild

I'm quite a bit baffled why my coordinate calculations are coming out so differently. All coordinates are where I expect them to be, except coordinate Z. \documentclass{article} \usepackage{tikz} ...
3
votes
2answers
251 views

How to reference an axis label, e.g. xlabel

I'm new to that forum but it already helped a lot, thanks for this! But now I really got stuck. Basically I'm looking for a possiblity to reference the xlabel of an axis in a TikZ picture. The ...
8
votes
1answer
967 views

tikz: placing nodes relative to the bounding box coordinates

I have a tikzpicture,in this case a blue rectangle, that will produce a bounding box, here visualized by the green background. I would now like to place a node in the top left corner of the bounding ...
10
votes
1answer
2k views

pgfplots - Placing Nodes on x Coordinates of a Plot

I want to plot some graphs in pgfplots and want to place nodes on the exact same x coordinate of the plot. The position of the note has to be set in x direction but free in y direction. Here is one ...
21
votes
4answers
8k views

TikZ: difference between \node and \coordinate?

What is the difference between \node and \coordinate in TikZ? Exchanging them does no visual effect in my (to be honest: still simple) pictures. When to use what?
2
votes
0answers
241 views

Tikz - Using calculated coordinates inside the plot function [closed]

I'm wondering if its possible to use calculated coordinates inside the function plot, somehow like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc, positioning} ...
6
votes
1answer
381 views

TikZ change coordinate system so Y points downwards

How can I change the default coordinate system of TikZ, so the Y coordinates go downwards, instead of upwards. This is because in the picture I'm trying to draw it is more natural to reference points ...
4
votes
1answer
190 views

Error with TikZ's Fitting Library when using coordinates

I try to use the TikZ's Fitting Library with coordinates but it didn't compile. In the manual of TikZ we got This option must be given to a node path command. The coordinates or nodes should be a ...
9
votes
1answer
467 views

normal coordinate system in tikz using parallel curves

I have a wavey looking curve and would like to show the corresponding normal coordinate system, which is defined by arclength along the curve and (signed) distance from the curve. So there should be ...
2
votes
1answer
291 views

Reverse labels without reversing the coordinates in circuitikz

How do I flip the label to the bottom without having to flip the coordinates? \documentclass[preview, american, convert]{standalone} \usepackage[siunitx]{circuitikz} \begin{document} ...
14
votes
2answers
620 views

Computed coordinates are all the same?

It's embarrassing question time. Why are my computed coordinates all showing up at the same location? The larger filled quarter circles are drawn with: current page.\x where \x is south west, ...
6
votes
1answer
396 views

Problem with external graphics and 3D pgfplots

I want to include an external graphics with pgfplots. I tried to follow the instructions of the manual (p45 et seq.) as carefully as possible. But the result is hoorible as hell. Here is the code I ...
6
votes
1answer
511 views

perspective tikz figure 3d

I want to rotate my figure, like here below: \documentclass{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \tdplotsetmaincoords{180}{0} ...
4
votes
1answer
118 views

How can I create one variable for coordinates?

Currently, if I want to make my TikZ images independant of coordinates, I use \newcommand\AX{0} \newcommand\AY{1} Can I create one coordiante for one point? How can I access the x-part or the ...
3
votes
1answer
265 views

Curve synthesis - Adding many (mostly piecewise linear) curves

It's a follow-up to a previous question. If I could have a macro out of the solution over there, it would have been great but then I couldn't make it. The following code (to be added to the one in ...
9
votes
1answer
469 views

Curve synthesis - Adding two curves to get another one

Case 1: Let's say I have a few coordinates (A), (B), (C), (W), (X), (Y), and (Z) (possibily obtained through intersection, rotation, and whatnots). I draw two piecewise linear curves through (A), ...
14
votes
2answers
3k views

Using TikZ coordinates in expressions?

I would like to be able to calculate two new \coordinates by starting from two existing coordinates. I have defined two coordinates c1 and c2. A minimal example would be \documentclass{report} ...
7
votes
3answers
1k views

extract x value from coordinate in TikZ

maybe I'm stupid, I looked at the many examples in which somehow shows the work with the coordinates, but I don't understand it. Simple example - I have: \begin{tikzpicture} \coordinate ...
2
votes
1answer
719 views

Setting coordinate system for TiKZ picture

I'd like to use TiKZ to generate stand-alone PDF diagrams programatically. I have an application that generates simple geometry of lines and arcs etc and I'd like to create (using e.g. Ruby) TikZ ...
5
votes
1answer
2k views

Circuitikz - IC circuit with relative coordinates

I've represented an IC circuit using circuitikz, but it's a bit too rough to what I prefer. In particular I would like to use relative coordinates in this case and connect them to the ``IC device'' so ...
4
votes
1answer
1k views

Box plots with symbolic x coords

I'd like to use box plots with pgfplots. As an additional feature, I'd want my x coordinates to be symbolic. Currently, only the last line from the file data/gp.dat is plotted. It works fine, if I use ...
7
votes
2answers
456 views

Transforming “rel axis cs” to absolute coordinates?

I've got two plots arranged vertically using \matrix. I'd like to draw a vertical line, that spans over both plots with a margin of 1cm at the top and at the bottom. The starting point of the line ...
3
votes
1answer
255 views

Formatting of coordinates?

In case I want to describe the pixels of a picture with cartesian coordinates, how would I properly typeset the coordinates? Is p_\mathrm{x}, p_\mathrm{y} correct or rather c_x, c_y? x and y represent ...
11
votes
1answer
3k views

How to specify a Tikz coordinate relative to a node?

is there a simple idiom (one not using the calc library) to specify a Tikz coordinate relative to a node? Something like \coordinate (x) [right=of A]; instead of \node (x) [draw=none, right=of ...
12
votes
2answers
443 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 ...
2
votes
1answer
1k 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 ...
6
votes
1answer
388 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 ...
3
votes
4answers
2k 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] ...
1
vote
0answers
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 ...
14
votes
4answers
458 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 ...
6
votes
2answers
1k 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 ...
15
votes
2answers
3k 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 ...
7
votes
3answers
347 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 ...
1
vote
0answers
128 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 ...
18
votes
2answers
5k 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 ...
12
votes
1answer
2k 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?
4
votes
1answer
340 views

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

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 ...
1
vote
1answer
553 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} ...
4
votes
1answer
302 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 ...
6
votes
1answer
529 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 ...
1
vote
1answer
82 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 ...
5
votes
1answer
2k 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); % ...
4
votes
1answer
499 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 ...
14
votes
3answers
4k 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 ...
3
votes
1answer
468 views

Using a macro for the coordinate in \coordinate

It seems that the two lines in the following code are not equivalent: \documentclass{article} \usepackage{tikz} \def\coord{(0,0)} \begin{document} % \tikz \coordinate at \coord; \tikz ...
18
votes
2answers
1k views

Accessing the logic values of a TikZ coordinate

In TikZ accessing the coordinate values of a node can be done using the let syntax of the calc library or using the PGF command \pgfpointanchor. However, this values are dimensions/lengths in points ...