Questions tagged [coordinates]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
261 views

Place coordinates in a circle with foreach with tikz

I tried to place coordinates as a circle and use them later to draw lines between the coordinates. To do so I thought it should be possible to use a foreach loop which works out perfectly if I use ...
5
votes
3answers
701 views

How to draw and label vertices of a polygon?

I am drawing a convex polygon and a line connecting two points on edges. However, as shown in the figure below, the endpoints of the line are not on the edges. How to fix that? \documentclass{...
1
vote
2answers
1k views

How to sum coordinates in a \put command in Latex

I would like to place a series of lines using the picture environment in latex but I can to placement of those lines to be relatively placed not absolutely place; i.e. I want to have defined ...
1
vote
2answers
392 views

Extract, convert, store and reuse (x,y) coordinate components

On a beamer frame, I have two tikzpicture environments one below the other. Both use the axis environment with identical scaling and domains. I need to: Extract some coordinate from the picture on ...
1
vote
1answer
97 views

How to make co-ordinate independent ornamented document?

I have this code - \documentclass{scrartcl} \usepackage[banglamainfont=Akaash,banglattfont=Akaash]{latexbangla} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[dvipsnames]{...
1
vote
1answer
185 views

The units do not match with the coordinate system while drawing circles

I have drawn a set of circles in GeoGebra. It looks like this: And I would like to draw the same picture in TikZ. Thus, I enter the coordinate of the centers, and draw using minimum width parameter. ...
3
votes
1answer
520 views

pgfplot addplot with predefined coordinates

I have a bunch of coordinates predefined, where I want to draw multiple lines in a plot by reusing coordinates. If I change a coordinate value, I only want to have to change it once, and not in ...
4
votes
3answers
518 views

Tikz: Calculate and store the Euclidian distance between two coordinates

Is there an easy way to store the Euclidian distance between two coordinates? I want to store the value 4 in a macro, so that I can use it to specify the width of a node. The easiest way I could ...
2
votes
1answer
158 views

Using a custom command inside Tikz-Calc

This my first question here, so I hope that I present it in an appropriate form. At the moment I'm generating lots of schematics using the TikZ-package and it's calc-Library. Therefore I use ...
3
votes
2answers
580 views

How do I fill the coordinate circles?

as written in the header I have a problem defining the fill colour of the circles, drawn between the arrows. Thank you very much in advance:) Here is the code: (Mistake probably in the upper ...
3
votes
1answer
352 views

pgfplots: drawing multiple vectors with corresponding unit vectors

Suppose you have a couple of 3D-vectors given by their start and endpoints. Now you want to define a command that draws one of these vectors together with its respective unit vector from the same ...
6
votes
1answer
1k views

Latitude and longitude coordinates on a sphere using tikz

I am trying from Stereographic and cylindrical map projections by Tomas M. Trzeciak to reproduce the two spheres below. However, I am having hard time to understand correctly the code and so far, I ...
1
vote
1answer
518 views

tikz array of coordinates: iteration and addressing elements

Given the following array of coordinates \def\points{ (-1, 3) (2, 7) (3, 8) } (see its use e.g. in TikZ: Smooth curve through three points without changing direction) how do I iterate (in tikz) ...
3
votes
1answer
375 views

What does (250,75) means in ``\begin{picture}(250,75)``

In the code \begin{picture}(250,75) % draw triangle \put(15,10){\line(1,0){50}} \put(65,10){\line(0,1){50}} \put(65,60){\line(-1,-1){50}} % draw square \put(100,10){\line(1,0){50}} \put(150,10){\...
1
vote
0answers
47 views

What is causing the white on the left of this page filling picture? [duplicate]

I am trying to make a page filling picture with a relative coordinate system. I used geometry to set the margings to 0pt and am drawing the picture using tikz. It almoast worked, but I can still see ...
2
votes
1answer
76 views

Can a \coordinate be used to define a \pgfpoint?

In this example due to @henri-menke (Can \pgfpoint be used to define a \coordinate) a \pgfpoint is used to define a \coordinate: \begin{tikzpicture} \pgfcoordinate{A}{\pgfpoint{2}{2}} \draw[->]...
1
vote
1answer
365 views

Can \pgfpoint be used to define a \coordinate

Can a \pgfpoint be used to define a \coordinate as in the following example: \begin{tikzpicture} \draw[->] (0, 0) -- \pgfpoint{2}{2}; \end{tikzpicture} I have a \newcommand that calculates \...
2
votes
0answers
41 views

Absolute and relative polar coordinates in pgfplots [duplicate]

Today i encountered some weird behaviour (lines with off angles and wrong lengths) while creating graphics with TikZ/PGF. After some searching i have narrowed down the problem to the example shown ...
2
votes
1answer
251 views

How to draw a triangle as a part of a pentagon using TikZ

I have a regular polygon using TikZ like this: \begin{tikzpicture} \node[regular polygon, regular polygon sides=5, shape border rotate=-18, fill=blue!20, minimum size=5cm, thick, draw] (Funfeck)...
4
votes
1answer
380 views

tikz coordinate addition in path

The following code: \documentclass[margin = 10mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (a) at (0, 0); \coordinate (b) at (0, 1); \...
1
vote
0answers
75 views

Problem with plotting coordinates in pgfplots [duplicate]

I have a problem trying to add a point using pgfplots. I want to plot a complex number, 4^(1/3)*(cos(2pi/9) + i*sin(2pi/9)). This gives that the x-component should be cos(2pi/9)*4^(1/3), and the y-...
2
votes
2answers
206 views

How can I scale the labels on a coordinate plane using tkz-euclide?

I have some code to make a coordinate plane that my students can use for graphing, but it takes up most of the page. Working Code, but image is too large: \documentclass{article} \usepackage[...
0
votes
1answer
235 views

Block-like environment in beamer (using tikz's current page coordinates)

I am trying to define an environment that looks like the following (see picture and code below) the environment body is contained in a background rectangle; this rectangle extends to the edges of ...
1
vote
1answer
96 views

Is there a way of drawing a line of any length between points without resorting to complicated arithmetic?

I am looking for something like pointA to pointB, length where pointA is starting point, pointB is ending point, and length is a line length spanning from starting to ending point. \documentclass[...
1
vote
1answer
70 views

About co-ordinate problem

\documentclass{article} \usepackage{pgf-umlcd} \usepackage[a4paper,textwidth=8in,showframe]{geometry} \begin{document} \begin{tikzpicture} \begin{interface}[text width = 6cm]{SG}{-3,3} \...
2
votes
1answer
269 views

tikz: coordinate arithmetic when drawing an angle

I can draw an angle like this: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc, angles} \begin{document} \begin{tikzpicture} \coordinate(O1) at (1, 1); \coordinate(O) at (1, 0); ...
3
votes
1answer
136 views

Tikz: Compare coordinates of two nodes to determine coordinates of next node

I am currently making a flowchart to describe the dependencies of modules in an algorithm. There are several branches and these reconnect at some point. Because my algorithm is still changing, the ...
0
votes
1answer
126 views

How can i represent a pendulum on the x-axis of a Cartesian coordinate system

I had started working with the tikz-3dplot and the pgf packages for writing a course of classical mechanic. Can you help me to draw a pendulum on the x axis of a Cartisian coordinate system? I want ...
1
vote
2answers
56 views

How to selectively tell tikz that a node should acquire its coordinate by adding all coordinates of all enclosing tikzpictures?

There should be a recommended/standard/usual way to do (what is suggested by) the following: \begin{tikzpicture} \node (tikzpicture0) at (0pt,100pt) []{ \begin{tikzpicture} \...
3
votes
3answers
302 views

access a coordinate in a nested \tikzpicture

In the following code \documentclass{article} \thispagestyle{empty} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} \node(inset) { \begin{...
4
votes
1answer
437 views

tikz node dimensions

How can I get tikz node dimensions such as height and width? I am interested to use these parameters to precisely calculate placement of objects, e.g. using <a.height> in the following example: ...
3
votes
1answer
92 views

Getting vertex coordinates from \feynmandiagram

It is handy to have the automated vertex placement at \feynmandiagram from the tikz-feynman package. Is it possible to retrieve vertex coordinates from the \feynmandiagram block? In the following ...
2
votes
1answer
481 views

vertex arithmetic with tikz-feynman

In this MWE (minimal working example) \RequirePackage{luatex85} \documentclass{article} \thispagestyle{empty} \usepackage{tikz} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{...
4
votes
1answer
102 views

Issues when trying to move a tikz pic composition

I am trying to construct a certain topological structure for my paper. Up until now my focus was primarily on typesetting (AKA I'm not very skilled at certain portions of tikz). I managed to break ...
2
votes
1answer
262 views

Start picture at the absolute top-left edge of the paper

I'm trying to get a layout done for a title page, but I can't get the coordinate raster correctly. For the record, I am NOT trying to create a grid, I need to place logos etc on a title page in exact ...
1
vote
1answer
278 views

How can I connect a random point in a smooth plot with the axis?

I have a random smooth drawing (just smoothly connecting dots) and want to highlight a point between the dots. Highlighting should happen by connecting the point on the graph with its coordinate on ...
1
vote
0answers
29 views

Drawing different circles with intersections [duplicate]

I found the following in this forum: \def\firstcircle{(0,0) circle (1.5cm)} \def\secondcircle{(60:2.1cm) circle (1.5cm)} \def\thirdcircle{(0:2.1cm) circle (1.5cm)} My goal is to draw three ...
3
votes
1answer
229 views

Attach local coordinate frame to figure

Using tikz I would like to add a local coordinate frame to a figure (the plane jpeg). If I place the plane in the origin (0,0) it seems to work fine with the following code. \documentclass[preview, ...
3
votes
1answer
218 views

How to create a database of coordinates to be used with TikZ?

The seeds of this question were planted in my mind and have been growing since I read this answer. I think it'd be nice to have a database from which some newcommand making use of TikZ picks up ...
0
votes
1answer
154 views

TikZ can I extract a point's coordinates in terms of basis vectors rather than physical coordinates?

I have a \drawanchor macro which draws and labels a point in a TikZ drawing. For each named point X I want to extract its coordinates and be able to print them later in the document. I've got it ...
1
vote
1answer
320 views

Droplet in spherical coordinates

I'm working in a droplet combustion problem, and first of all i have to draw spherial coordinates. I've found this Draw in cylindrical and spherical coordinates but I want to draw a droplet (grey-...
3
votes
2answers
608 views

Coordinate of a point on cylindrical helix with TiKz

I have a cylindrical helix and two points on it (say A and B). I want to draw a line from A to B. How can I parse this coordinate in TiKz? Thank you in advance. Code: \documentclass[margin=1cm]{...
2
votes
2answers
395 views

TikZ relative coordinate system

When I use the command below: \draw (apex)+(1mm,0) -- node {$h$} (center)+(1mm,0); where (apex) and (center) is predefined appropriately, then I have a problem where +(1mm, 0) is not applied to the (...
3
votes
0answers
80 views

tikz-3dplot: How can I recover the x,y,z components of a previously defined coordinate?

Specifically, in order to use the \tdplotsetcoord command to define coordinates and then use the \tdplotdefinepoints(Vx,Vy,Vz)(Ax,Ay,Az)(Bx,By,Bz) command that requires the x,y,z components of the ...
3
votes
1answer
337 views

How to set a user-defined coordinate system globally?

Consider an example like this drawing using a 3d perspective. The package tikz3d defines a new coordinate system 3d, and the coordinates are specified as (3d cs:1,2,3) etc. Is is possible to set the ...
0
votes
1answer
45 views

tikz won't put drawings in correct coordinates

\draw[very thick] (12.5,0) node[left] {Nature} -- (12.5,2); That code there does not work, no matter what I put in for 12.5. It just stays put in the left part of the page. Help.
6
votes
1answer
1k views

Define coordinate based on other coordinate in Tikz

Can I define a coordinate relative to an already defined coordinate? If I define a coordinate (A) with \coordinate (A) at (2,0); Is there a way to define a coordinate (B) that is 2cm to the left ...
4
votes
1answer
208 views

Using coordinates of one tikzpicture in another

In the attached picture I have two side-by-side tikzpicture, and I wish to use the vertical coordinates of the red dots in the left tikzpicture on the right one. What is the correct way to do so? (My ...
3
votes
1answer
559 views

Coordinate system with text in each quadrant

I am trying to reproduce this diagram So far I have tried \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[% node ...
2
votes
1answer
323 views

Flow chart with coordinate system at specific node

I know how to create flow charts in the tikz environment. The question now is, how can I create a coordinate system in one specific node? I know how to draw an input signal (e.g. two impulses) in a ...