{coordinates} is about using coordinates in diagrams.

learn more… | top users | synonyms

2
votes
2answers
58 views

How can I add more coordinates to standard TikZ shapes?

Question I would like to know how to add an arbitrary number of coordinates to the default shapes of TikZ—particularly to the side of a polygon. Sample This is similar to ...
3
votes
3answers
94 views

How to get coordinates going from 0 to 1 in tikz image

I'm trying to create a cover page with a background image filling the entire page. On top of that in the lower third of the page should be a transparent rectangle going from side to side and on top of ...
2
votes
1answer
40 views

How to convert polar coordinates to cartesian coordinates

I am new to tikz. I am using the following code (Polar co-ordinates) \def\radius{12cm} \begin{tikzpicture} \foreach \x in {0,10,...,350} { \draw [shading=radial, inner color=white, outer ...
6
votes
2answers
279 views

drawing smooth path through symmetric points, gives non symmetric curve

I want to make a graphic going through some points. I've choose the points symmetric, to have a symmetric curve, but the curve is not. I could define some extra points, but their must be a better ...
3
votes
1answer
111 views

Differences between paths drawn between nodes and coordinates in tikz

Referencing this very helpful posts and the Tikz manual, which states: Whenever TikZ encounters a whole node name as a “coordinate,” it tries to “be smart” about the anchor that it should choose ...
4
votes
0answers
59 views

\coordinate intersection does not work appropriately in TikZ

I was trying to use TikZ to sketch some graph but something weird happened. I was trying to use "intersection" to get the coordinate of the intersection of two lines, but strangely, there is always ...
5
votes
2answers
381 views

Tikz coordinate calculation

Consider the followinting tikz picture. I need to place the segment re-D so that its measure will be 8/9ths the measure of the segment ut-C. Now I just placed it at a random distance of 8/9 between ut ...
3
votes
0answers
53 views

Retrieving coordinates of every character in a formula

I'm writing a program that uses LaTeX to display formula's. The user must be allowed to click on different parts of the formula, and the program should know on which part the user clicked. Is there ...
4
votes
1answer
108 views

Expressing a y-only shift with `axis direction cs` with symbolic x coords

I have a vertical bar chart with error bars. I want to put a star just above or below the error bar where the results are significant. I achieved this using the very neat trick provided in this ...
4
votes
1answer
70 views

Changing axes' origin adds weird whitespace

I would like to display points in a Tikz picture, whose y components are all negative. That is per se no problem, but I want the y axis to be a bit higher than the x axis to emphasize the negative ...
3
votes
4answers
208 views

Tikz-Control relative coordinates in background layer

I am creating a block diagram which has two layers : the main one and the background one. What I am trying to do, is draw a rectangle as a background using relative coordinates. My code is ...
4
votes
1answer
112 views

Extracting the value stored in the /tikz/x option

It is possible to change the x distance within TikZ internal coordinate system by passing the /tikz/x= key to the tikzpicture environment. \begin{tikzpicture}[x=14pt] % Picture code \end{tikzpicture} ...
3
votes
0answers
124 views

3d sphere style changes coordinates?

i took this one http://www.texample.net/tikz/examples/map-projections and rebuild or changed it for my use. This is a crosspost to: ...
-2
votes
2answers
149 views

drawing 2-D coordinates with 2 simple line in it [closed]

I want to draw this coordinates with straight lines in it... would you do me a favor and help me?
1
vote
2answers
105 views

Ifthenelse variable equality

Last week I made simple coordinate transformation in order to define \tdplotsetcoord in Cartesian coord. system. My work and support of exp. user can be viewed in this topic. The code looks as ...
2
votes
1answer
31 views

How to print in a node the \coordindex multiplied by a value?

I would like to print in a node the \coordindex multiplied by a value. Is it possible? now: node [ some code... ] {$\coordindex$} after (?) node [ some code... ...
4
votes
1answer
129 views

How to add labels to polar plot / polar comb in polaraxis and show FULL coordinates?

In pgfplots, I am trying to: for a first figure: label 12 polar plots plotted on the bases of 12 tables (values given in cartesian coordinates) without showing a legend but adding a label directly ...
3
votes
1answer
134 views

How to locally specify function range in math expression

I'm creating simple coordinate transformation in order to define \tdplotsetcoord coordinates at Cartesian coord. system. MWE: \documentclass[a4paper,fleqn,leqno]{article} ...
4
votes
1answer
98 views

Help understanding the coordinate system used in tikz

I'm trying to understand how the coordinate system work for drawing pictures with tikz. I'm a little lost... Here is a MWE that shows of some example code: \documentstyle{article} \begin{document} ...
6
votes
1answer
164 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
228 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
369 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
95 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
154 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
115 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
196 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
119 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
81 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
160 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
359 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
459 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
130 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
251 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
1k 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
87 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
152 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
129 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
86 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
67 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
276 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
218 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
270 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
274 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.
6
votes
1answer
441 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. ...
2
votes
1answer
362 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
174 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
305 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
207 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
107 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
143 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 ...