{coordinates} is about using coordinates in diagrams.

learn more… | top users | synonyms

5
votes
1answer
72 views

Specify x and y in different coordinate systems in pgfplots similar to gnuplot

In gnuplot you can specify positions in several coordinate systems: First, Second, Graph, Screen, Character. What are the equivalents in pgfplots? I know the following: First : axis cs: Second : ...
3
votes
1answer
115 views

TikZ - flexible arrow positioning

The following MWE is translating to the desired tikz picture, but the code is not very useful for adjustments. Especially the positioning of some arrows is done very poorly by defining coordinates ...
11
votes
5answers
231 views

automatic tikz coordinate calculations

Right now I have these defined: \coordinate (Z1) at (0.9,0.5); \coordinate (Z2) at (0.816,-0.112); \coordinate (Z3) at (0.46848,-0.46336); But I would really like to automate this to be: so that ...
2
votes
1answer
67 views

Minus signs on coordinates not visible enough with TikZ

I want to draw a system of coordinates with TikZ. At the moment I use the following code (which I copied from somewhere). Now I would like to make the minus signs on the negative y-coordinates more ...
7
votes
1answer
94 views

Placing node at path using `midway` in pgfplots

I thought my problem would have been possibly answered anywhere here, but I could not get it to work. Questions I consider linked to mine but which weren´t able to solve my issue are node placement ...
1
vote
0answers
70 views

Cartesian Coordinate Rotations - Better looking code? [closed]

This is one of my first attempts with TiKZ-3D, so my knowledge is limited. Is there a better or more organized way to accomplish the following?... \documentclass[letterpaper]{article} ...
6
votes
1answer
113 views

How to prepare coordinates for 3D surface plot using pgfplots

I'm trying to plot a Pareto front on 3 dimensions, using pgfplots. However, although I expect a nice surface to appear (since it is a Pareto front), pgfplots does not produce the result I want (yet). ...
1
vote
1answer
78 views

Tikz: How to combine orthogonal edge syntax with coordinate calculation? [duplicate]

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) ...
4
votes
1answer
55 views

Fit node to another node in a seperate scope that has been shifted and canvas transformed

I want to fit a node to another node which is defined in a different scope which has been subject to the options "(x)shift and transform canvas" (see example code and image). Without any canvas or ...
3
votes
1answer
104 views

Converting node coordinates in tikz 3d?

Consider this MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{3d} ...
7
votes
3answers
268 views

drawing points coordinates in a graph

I need to draw points coordinates in a graph. In my case, the problem is that the values of the x-axis and y-axis of each point can be very large. That is why I need to edit the code below in order to ...
16
votes
2answers
380 views

Can LaTeX place text by mm coordinates?

My system generates LaTex letters and templates; however, my client has to fill out pre-built forms that they have no control over. I'd like to fill out these forms by measuring the coordinates in mm ...
2
votes
1answer
60 views

Apply shift to (current axis.left of origin)

I was trying to improve the solution at Drawing lines in a plot and give them a label? by using Jake's answer at How to access \xmin, \xmax, \ymin, \ymax from within PGFplots axis environment. So, ...
1
vote
1answer
136 views

how to add annotation to ybar pgfplots with symbolic x coords

I would like to add an annotation, or better, an arrow to a particular ybar in a plot, but I am struggling with the symbolic x data. I've used \pgfplotsinvokeforeach to read in variable data, and so ...
12
votes
2answers
648 views

Draw in cylindrical and spherical coordinates

I can try to draw this in TikZ: I managed to draw the coordinate axis. The first image is in cylindrical coordinates and the second in spherical coordinates. I don't know draw in spherical ...
1
vote
1answer
70 views

How do I store the x or y value of a named node in tikz \draw?

A big part of the question above has already been answered: "Use the calc tikzlibrary and the let syntax". \begin{tikzpicture} \draw [help lines] (0,0) grid (4,4); \node (A) at (2,1) {A}; ...
5
votes
1answer
93 views

Remember coordinate in nested tikzpicture points to a weird place

I have problems with remembering the coordinates of names defined in nested tikz pictures. Look at the following minimal working example: \documentclass{article} \usepackage{tikz-qtree} ...
4
votes
1answer
93 views

How to reference the arguments defined in a “newcommand”?

What I am doing: I want to draw a picture (as shown below) to illustrate the contraction of some intervals to nodes in a line. First, I define a newcommand for interval (i.e., \op) with three ...
2
votes
0answers
65 views

Asymptote-LaTeX: Evince not displaying coordinate axes in plots [closed]

I was using asymptote in order to do some plot I needed and in stand alone it all seem to work. The code is: import graph; size(10cm); scale(Linear,Linear(-1)); typedef real realfcn(real); ...
3
votes
1answer
62 views

Picture environment: line length does not match its coordinates

Well I have a problem matching line end with its coordinate. Here's the code: \documentclass{article} \begin{document} \begin{figure}[h] \centering \begin{picture}(260,210) ...
0
votes
1answer
185 views

How can I draw with coordinates of intersection in pgfplots?

When using pgfplots, the command \pgfgetlastxy works well without axis environment and with axis environment set as default. But it is hard getting the correct coordinate of intersecting, when ...
5
votes
2answers
152 views

Labeling node values on the axes

I want to draw some curves and some special coordinates on the curves, then label the nodes on the axes. So far I have done it manually like this (it's a diagram for the Markowitz risk premium in case ...
4
votes
1answer
202 views

Wrong point when barycentric coordinates in triangle add up to one

I am trying to plot points on a triangle using areal coordinates (barycentric coordinates that add up to one). Using TikZ and the barycentric coordinate system, however, this gives the wrong point in ...
1
vote
1answer
192 views

Write text inside some shape in tikz [duplicate]

How can i write text between some pre-defined coordinates in tikz?. As shown in the attached figure, i want to write text between a-b-c-d coordinates.
5
votes
1answer
285 views

How to create symbolic x coords without losing last bar

I've created a bar chart with labels for the x coordinates. But if I don't put a xmin/xmax in, only half of the first and last bar appear. If I add a xmax it shows up on the axis. ...
1
vote
1answer
221 views

Using current path position in coordinate calculation

I often find myself writing code like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node (aNodeWithALongName) at (1,1) {a}; \node ...
7
votes
2answers
157 views

How to get a reasonable coordinate system when combining pdfpages and TikZ?

I have been trying to add content to a (proprietary) PDF with LaTeX by using pdfpages to inlude the original pages and draw on them using TikZ. This is the code I have been using: ...
11
votes
4answers
288 views

Can tikz coordinates be exported to a text-file?

Can tikz coordinates be exported to a text file, while the document is rendered? Let the document be: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} ...
7
votes
2answers
170 views

How to extract coordinates in the current scope (before the coordinate transformation matrix is applied)

If I extract coordinates with \pgfgetlastxy{}{}, I get changing results depending on the transformations I've applied to my draw (rotation, scale): \documentclass[margin=0.5cm]{standalone} ...
3
votes
1answer
98 views

Match coordinate in two different scopes

I've many small pictures, each centered at (0,0) in their own figure but i need to combine them and in the combined picture the (0,0) of the 1st picture (in a scope) should be (4,2) of the 2nd picture ...
2
votes
2answers
123 views

TikZ: can a new coordinate be placed along a line by using shorten?

I have line from the origin to (2,2) in this example where I placed the coordinate (A) at the (2,2). What I want to do is place a new coordinate 1cm below (A) on the same line and then draw a ...
7
votes
1answer
158 views

Create a coordinate node at each point of a path

How can I create a TikZ/pgf-style that will put a coordinate, which should be named automatically, at each point of a path? So the following code \draw[put coordinates](0,0)--(3,2)--(4,7)--(-2,1); ...
0
votes
1answer
174 views

intersection coordinate systems

I'm trying to write a \newcommand to draw a little stick-man in PGF. It isn't finished yet, but right now, it looks like this: \newcommand{\man}[1] { % #1 : The position of the head of the stick man ...
1
vote
1answer
102 views

TikZ: Can a node be placed at pos = .5 and then a coordinate at the end of the line?

As the title say, can a node and a coordinate be placed on the same line? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (P1) at (-2, 0); ...
2
votes
1answer
172 views

TikZ: Accessing coordinates from coded points

Consider the code below. In the scope environment, I am using a clip to keep the ellipse between the points. From reading, I know with the let command I can access the coordinates of the points by ...
4
votes
2answers
297 views

Tikz coordinates relative to a node, and outside it

Given a rectangular node X I have access to the coordinates (X.north), (X.east) and the like. However, I want to be able to draw two sides of a right-angled triangle on top of the node. For example, ...
7
votes
2answers
156 views

Coordinate system along line

I would like to draw a coordinate system along some lines in a framework for a structural course. This little coordinate system is called local coordinate system. At the moment the framework looks ...
11
votes
2answers
283 views

Relative coordinates in PSTricks

TikZ gives us the ease of using relative coordinates, like in the following example. \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} ...
6
votes
1answer
365 views

Extracting x, y coordinates of an arbitrary point in TiKZ while using yscale and xscale

Inspired by Extract x, y coordinate of an arbitrary point in TikZ, I am trying to use the x coordinate of a point to draw another element. However, when I use the yscale and xscale commands, the ...
4
votes
1answer
725 views

How to draw and annotate a spherical coordinate system

For some lecture script I am preparing I would need some descriptive images showing how to work with spherical coordinates as often seen in textbooks, i.e. a globe and some descriptive arrows ...
2
votes
2answers
114 views

illegal unit of measure in tex code created from dot2tex

I am using dot2tex to convert some code from graphviz into LaTeX (PSTricks) drawings. However, I get following error ! Illegal unit of measure (pt inserted). <to be read again> l.21 ...
2
votes
1answer
103 views

placing invisible links at certain coordinates?

Does anybody know if this is possible using TikZ? I'm trying to create links over a picture that i have layed on the background of a frame or at least placing them on some nodes in a TikZ code.
4
votes
1answer
188 views

Pass a 3d coordinate via pgfkeys

I'm using 3dplot to draw in 3D. Now I want to define my own environment, called pose, that is supposed to be used inside a tikzpicture-environment. It should perform a coordinate system tansformation ...
4
votes
1answer
649 views

How do I set top left position as the anchor for a node (TikZ)

Is there a way to position a node in terms of left/right coordinates of bounding rectangle? It appears to me that I can only specify center position.
4
votes
1answer
315 views

Drawing on multiple images inside the same tikzpicture, how to get the right transformation of coordinates?

Following Drawing on an image with TikZ, I've had many succesful instances of drawing on a picture with TikZ. However, now I have a tikzpicture environment with several graphics, and I want to draw ...
12
votes
2answers
366 views

How can I do an affine coordinate transformation in pgfplots?

It is possible to perform a general affine coordinate transformation in TikZ by combining the shift, x, and y keys (or just the generalized cm key to set the coordinate matrix and shift). This allows ...
3
votes
1answer
149 views

Color influences layout?

To verify a layout template, I use eso-pic. In this example, all boxes should start at 20mm from the left, but as soon as I use \color...put \color...put the X-coordinates of the boxes are deferred. ...
6
votes
1answer
2k views

How to position one node relative to another node at a certain angle in TikZ taking the nodes' size into account?

I asked a question before about how to position a node relative to another node at a certain angle in TikZ, and the answer I got there was that you can use the \path (node1) ++(angle:distance) node ...
10
votes
5answers
1k views

Transform defined coordinates in TikZ

Say I have a triangle with vertices defined using \coordinate (a) at (0,0); \coordinate (b) at (1,0); \coordinate (c) at (0,1); Let us denote by T(x,y) the triangle defined by (a),(b) and (c) which ...
16
votes
3answers
3k views

How to draw a coordinate system with LaTeX?

I want to draw a coordinate system like this: I would like to specify the width and height of the coordinate system and where the origin begins (upper left corner). I also want to specify the x and ...