# Questions tagged [coordinates]

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

281 questions
Filter by
Sorted by
Tagged with
0answers
129 views

### Polar Coordinates Graph using TiKz [duplicate]

I have to create a Tikz picture of a limacon which is given in polar coordinates by the equation r = 0.5 + cos(θ) for θ between 0 and 2π. Note:makethe x-axis between 􀀀0.2 and 1.7 with a scale of 3 ...
2answers
331 views

### How to create this coordinate system?

I'm currently working on a term paper / lecture notes for my electrical engineering professor and wanted to include the following coordinate system / graph / figure in my paper. (The image should be ...
0answers
55 views

### How to know the coordinate for Tikz drawing? Is there a way to show the coordinates in Texmaker? Thank you

I have trouble in "estimating" the coordinates in an a0 size poster. How do I know the exact coordinate in the paper? Is there grid or ruler in Texmaker to help me? Thank you.
1answer
1k views

### Tikz coordinate calculations inside foreach

As part of a drawing that will go with an explanation of diffraction, I want to draw the "outer rays" of a beam of light and draw several rays in between. An MWE of how I'm going about this is shown ...
1answer
1k views

### Why are my symbolic x coordinate labels printed twice in a tikz plot?

I'm trying to plot a bar graph, using symbolic x coordinates. For some reason, the name of some symbolic coordinates appears under the x axis more than once. If I increase the width (e.g. 12cm) the ...
1answer
2k views

### How to define node / coordinate with perpendicular

How to define / save a point for later usage with x/y-coordinates of other points? I tried to use the perpendicular coordinate system shortform |- and -| but could not define points that way. In ...
1answer
486 views

### 3D Orbits around Sphere, arc points or orbit coordinates positioning

I have again a question about some 3D tikz problem. Added crosspost at: http://www.latex-community.org/forum/viewtopic.php?f=45&t=26046 Added german crosspost: http://texwelt.de/wissen/fragen/...
3answers
11k views

### Tikz: Placing a node relative to the (rectangular) coordinates of another

How do I place one node relative to the coordinates of another? In theory: \begin{tikzpicture} \node (source) {X}; \node (destn) {Y} at source.coordinates +(2,1); \end{tikzpicture} would ...
1answer
133 views

### Call to coordinate for creating a patch gives an error

I'm trying to construct a patch in pgfplots by means of table data. In attempting to do so, I also use the \coordinate command. Minimum working example: \documentclass{standalone} \usepackage{...
1answer
2k views

### grid and draw use different coordinates?

The question is easy to explain with this MWE: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [very thin, color=gray, dashed] (0, 0) grid (5, 5); \draw [...
1answer
1k views

### Estimating coordinates to draw over image using TikZ

I need to draw two rectangles (or this could apply to any shape in general) of different colors on top of a diagram. The MWE that I have this is. The code works, but I am unable to change the ...
1answer
473 views

### Tikz 3d trimetric view coordinate calculation bug

I'm trying to draw a line in the x-y-plane and circles in the y-z-plane at constant x position. Problem is, that the circle is far out of position (x-coordinate of center point of the circle is ...
1answer
265 views

### Prevent shifting of shading center point when using relative coordinates

I am writing some macros that allow for the drawing of ball shapes in an arbitrary fashion in \foreach loops: \documentclass[tikz, border=0.5in]{standalone} \newcommand{\ball}[3][0,0]{%\ball[...
2answers
234 views

### Text halfway a line using coordinates in an axis environment

I want to denote text halfway a line in an axis environment. Here's a minimum working example: \documentclass{article} \usepackage{currfile} \usepackage{filecontents} \usepackage{pgfplots} \...
2answers
1k views

### Draw perpendicular line from intersection to axes

I want to draw perpendicular lines from the intersecting points to the axes. \documentclass{standalone} \usepackage{pgf, tikz} \usetikzlibrary{plotmarks,arrows,calc} \usepackage{pgfplots} \begin{...
0answers
39 views

### why tikz will generate a series of .0.0.0.0? [duplicate]

I want to generate several point on a line, and this is the command: \documentclass{article} \usepackage{tikz,pgf} \usetikzlibrary{calc} \begin{document} \begin{figure} \begin{tikzpicture} % ...
2answers
2k views

### Tikz obtain node coordinates

In tikzpicture, how do I get a single coordinate of a node? This is the circuit I'm making, and I need to know the x coordinate of the node (opamp.out) so that i can make R2 vertically aligned with ...
1answer
245 views

### How can I draw a line to the vertices of an image in tikz

Basically what I am trying to achieve is the following: - Place 2 images horizontally side by side - Inside the left image (image_1) draw a small red rectangle - Connect the vertices of that ...
2answers
377 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 https://tex.stackexchange....
3answers
818 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 ...
1answer
717 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 color=...
2answers
845 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 ...
1answer
942 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 ...
0answers
341 views

### \coordinate intersection does not work appropriately in TikZ [closed]

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 ...
2answers
23k 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 ...
1answer
161 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 ...
1answer
962 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 ...
1answer
252 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 ...
4answers
1k 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 \...
1answer
251 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} ...
1answer
969 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: http://latex-community.org/forum/viewtopic.php?f=45&t=25078&...
2answers
332 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?
2answers
2k 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 follows:...
1answer
181 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... ...
1answer
628 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 ...
1answer
1k 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} \usetikzlibrary{arrows.meta,...
1answer
3k 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} ...
1answer
2k 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 : ...
1answer
2k 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 ...
5answers
2k 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 I ...
1answer
332 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 ...
1answer
1k 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 ...
1answer
2k 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). ...
1answer
803 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) ...
1answer
341 views

### Fit node to another node in a separate 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 ...
1answer
875 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} \...
3answers
4k 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 ...
2answers
4k 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 ...
1answer
809 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, ...
1answer
1k 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 ...