Questions tagged [coordinates]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
581 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
328 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 ...
1
vote
1answer
158 views

North-West Coordinate dependent on margin?

I have the following code (The documentclass is taken from here): \documentclass{Thesis} \usepackage{tikz} \definecolor{RoyalRed}{RGB}{157,16,45} \usepackage{lipsum} \usepackage{fancyhdr} \pagestyle{...
4
votes
1answer
474 views

Center of multiple points/coordinates/mass

This question Center of mass was answered in different ways. If we have coordinates (m1), (m2), (m3), (m4) one more way is to write \documentclass[12pt,parskip=full]{scrartcl} \usepackage[a4paper,...
8
votes
3answers
625 views

Draw curve in same curve small

I want two make same space between two smooth curves \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (O) at (0,0); \draw [...
1
vote
2answers
235 views

To draw a graph like this, what code do I need?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[scale=5] \coordinate[label=above left:$A$] (A) at (95:1);...
7
votes
1answer
462 views

Using vectors in TikZ?

Is there a way to define vectors in TikZ? By that I mean the ability to add and scalar multiply coordinate tuples, for example for drawing a parallelogram: % Just pseudocode: P := (0,1); Q := (1,1); \...
0
votes
2answers
2k views

Positioning a coloured background rectangle using the background package

I am trying to get a background rectangle of colour covering one of two columns on a page done with multicol, with the rectangle going right to the edge of the paper. I am confused about the ...
4
votes
1answer
252 views

pgfooclass: passing a coordinate to the constructor or method

In the stamp class example in the pgfmanual, the position for the stamp is passed in as two separate numbers, an x coordinate and a y coordinate. Is it possible, instead, to pass in a coordinate or a '...
0
votes
1answer
144 views

I got the message coordinate (,) has been dropped because of a coordinate filter while loading the data from csv file. Any help?

Snippet of my code: \newcommand*{\datafile}{sr_data_test.csv} \addplot [color=blue, solid, line width=1.0pt, mark size=3.0pt, mark=x, mark options={solid}] table[x index =0, y index = 1, col sep=...
5
votes
1answer
268 views

pgfplots histogram with custom symbolic coords [closed]

I'm trying to modify a simple example of a histogram with symbolic coordinates from the pgfplots 1.14 manual, page 503. This is the example (mwe): \documentclass{article} \usepackage{pgfplots} \...
9
votes
2answers
182 views

TikZ fill not being drawn using named coordinates

Is this a bug in TikZ? I'm working on an assignment which includes a number of colorful graphics, and for some reason the following code doesn't quite work as expected: \RequirePackage{luatex85} \...
5
votes
1answer
150 views

Showing different coordinate systems by uncovering in tikz?

Using beamer I want to show how different linear transformations act on the plane. I tried to do this by uncovering different \pgftransformcm commands, but it doesn't work. What would be the best way ...
0
votes
1answer
984 views

Creating a coordinate system with TikZ

I would like to create a coordinate system as in the following picture, or at least similar. I would really appreciate guidance.
3
votes
1answer
1k views

Tikz, no shape named is known error

I am trying to compile following MWE \documentclass[border=9 pt]{standalone} \usepackage{epsfig,graphicx,tikz} \usepackage{standalone} \usetikzlibrary{intersections} \usepackage{pgfplots} \usepackage{...
2
votes
0answers
89 views

Nested coordinate calculations

I have the following coordinate calculation \coordinate (a0) at ($(c1)!0.5!(c2)$); \coordinate (a1) at ($(c3 -| a0) + (1,3)$); \draw (a1) rectangle (b1); I wanted to eliminate the first coordinate ...
2
votes
1answer
156 views

TikZ > Is it possible to use the identifier of coordinates as string?

I am drawing pictures with TikZ using loops, for instance \foreach \point in {(i),(j),(k)} {...}. Is it possible to use the name of the coordinates as string to label a node? I'd like to use \node at ...
3
votes
1answer
998 views

How to fix the position of (0, 0) to (current page.south west) for every tikz picture?

I need to draw severals tikz picture of varying size. Each picture is on a separate page. The coordinate system should be fixed, though. Whenever I do \node at (0, 0) {hello}; 'hello' should be on ...
5
votes
1answer
358 views

Arrows, coordinates and labels

Please, consider the MWE below. \documentclass[border=3mm, tikz, preview]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ LM/.style = ...
0
votes
1answer
157 views

Centering tikz picture in geometry layout

This question regards centering of tikz picture in geometry layout. The question combines two answers that were answered here in tex.stackexchange. The first answer explains how to position the tikz ...
3
votes
2answers
203 views

Express boxes properties in tikz coordinates

In my understanding, any LaTeX box displays such fundamental properties: .. and anything is wrapped into a LaTeX box. So, when I produce a tikz picture, it must be somehow wrapped into a box. Indeed,...
2
votes
1answer
294 views

Exact Tikz coordinate at geometry layout

I place several images on one page using Tikz. I use geometry layout. I would like to find out exact coordinate of the left top corner of the layout page (not the real page). I have found out ...
3
votes
1answer
102 views

Is there any way to draw the same shapes at different positions efficiently, for example \foreach?

I know there is a similar question, but I do not think it gave the best solution. Here is my code: \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \clip(-0.5,-1) ...
1
vote
1answer
204 views

Define position of line by parameters (Tikz)

It is possible to give in the coordinate of the point by an outside variable? For example, I have a simple line: \begin{document} \draw (0,0) -- (5,5); \end{document} I would like to parametrize ...
3
votes
1answer
622 views

Working with perpendicular coordinates in circuitikz

Inspired by Paul Gessler's answer to this question, I decided to give it a try and adapt the following diagram to use perpendicular coordinates: \documentclass{standalone} \usepackage{circuitikz} \...
6
votes
2answers
1k views

Linear transformation Coordinates

I want to transform the canonical coordinates system , i.e. whose basis vectors are (1,0) and (0,1): \documentclass[a4paper, 12pt]{report} \usepackage{fullpage}[1cm] \usepackage{tikz} \usepackage{...
1
vote
1answer
819 views

tikz plot coordinates decorations change between points

I have a plot of coordinates \draw plot [smooth] coordinates{ (-3.1,-0.5) (-1.5,0.3) (0,0) (1.8,0.64) (3,0.5)}; Is there a way to have the curve between (0,0) and (1.8, 0.64) painted thick? I would ...
5
votes
3answers
496 views

Pgfplot coordinates in another pgfplot

How can I transform coordinates from the first axis plot to the second axis plot with a different scale? One way is to repeat all function calls. But if I've got a random function how can I get the ...
4
votes
1answer
156 views

Relative coordinates after cycle with transform

When I was trying to understand this question I discovered a strange behavior when we use relative coordinates just after cycle in a transformed path. Here is an example (the black path) : \...
1
vote
0answers
95 views

Grid and label in a coordinate with a different angle betwenn the axis

I have drawn a coordinate with an angle of 30 degrees betwenn the x- and the y- axis like this: \documentclass[border=3mm,tikz]{standalone} \usetikzlibrary{arrows} \begin{document} \newcommand{\...
3
votes
1answer
96 views

Code with foreach AND coordinate does not compile - but if i remove one or the other, it compiles

Based on this question i did some experiments with tikzset, coordinates and foreach. The following code plots four times the same thing. Twice with and twice without a tikzset. Twice with and twice ...
1
vote
1answer
236 views

Calculation of coordinates in 3d with the 3dstructuralanalysis library

The tikz library structuralanalysis provides the pointcommand. %------------------------------------------------ % point %------------------------------------------------ % \point{...
3
votes
1answer
3k views

Rotating axes in 3D for better viewing planes

I have this code: \begin{figure}[h!] \centering % Generat amb TikZ \begin{tikzpicture} % Note: the points have coordinates (x,z,y) \coordinate (O) at (0,0,0); ...
3
votes
1answer
625 views

Confusion about the coordination system of 3D

I am drawing a 3d framework. I use something like (xyz cs:x = 12, y = 6, z = -6) to specify a coordination. However, the figure I produced looks ugly. Especially, the coordinations at the corners of ...
1
vote
0answers
93 views

Coordinate naming in custom Tikz package

I want to make my own Tikz library/package or just a set of commands for making hydraulic diagrams within the Tikz environment. Say I want to draw a valve like (b) with the notation for the nodes in (...
3
votes
1answer
607 views

Tikz: draw line forming a specified angle with another line

Let us consider a setting where I have two coordinates A and B. The points have been built through a series of fransformations, so I don't really know their coordinates. Now I want to build point C ...
5
votes
2answers
283 views

Problem with relative coordinates within \draw command

I've got a problem with the following code. I'm trying to draw a circuit using circuitikz. However, the current source should be shifted by 1 unit in the x-direction, so that it is placed parallel to ...
2
votes
1answer
432 views

Using a macro inside a Tikz coordinate calculation

I am trying to create a general macro that prints a particular custom character, based on an answer to a previous question of mine. Here is a minimal (non-)working example: %!TEX encoding = UTF-8 ...
3
votes
3answers
963 views

Draw uniform lines/grid on a distorted square/axes?

I want to draw a square discretised by equally spaced lines. However, if I move one of the nodes, say node 4, the grid lines will keep it's relative spacing (see the image). I have no idea what to ...
2
votes
1answer
374 views

Joining different TikZ pictures

I want to draw a line from one part of the text (on the page) to another part. I'm storing (relative) coordinates, and this is the reason why my MWE doesn't work. Is there any way, using TikZ, of ...
2
votes
1answer
852 views

Drawing on an image with TikZ using own coordinate system

I do a lot of mapping, and regularly draw on images using the scheme outlined earlier (Drawing on an image with TikZ) on a 0-1/0-1 grid. I need to produce multiple scalings of the same mappings and it ...
4
votes
1answer
566 views

Change coordinate order in TikZ

I want to change the order of entering coordinates in TikZ. In 2D-coordinates it is (x,y) as in (right/left, up/down). As soon as I enter a third coordinate, TikZ just adds the third coordinate at ...
6
votes
2answers
462 views

TikZ Macro for Placing an “X” by Coordinate

I would like to make a TikZ macro that will: Have an optional argument of coordinates Place X centered at those coordinates. Is this possible? This is how I put two X's on a 10x10 grid manually. (I ...
5
votes
1answer
4k views

What's the difference between xshift/yshift and relative coordinates while drawing an arrow between nodes?

Last night I crafted this piece of LaTeX, using relative coordinates to join nodes with arrows: \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usetikzlibrary{positioning} %for [above], [...
2
votes
3answers
257 views

TikZ rotating coordinate problem

I am trying to rotate point (B0) by 90 degrees ccw around (A1) and then loop it to get (B\k) and (A\k). What am I doing wrong? \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[...
14
votes
4answers
2k views

Storing and re-using tikz coordinates for position and tangent vectors

The following code \documentclass[border=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \usetikzlibrary{arrows,backgrounds,patterns,shapes.geometric,calc,...
2
votes
1answer
291 views

Tikz : drawing a parallelogramm question (summing nodes)

I'd like to caclculate the coordinates of C knowing A,B,D in the ABCD parallelogramm. This works fine : \coordinate (C) at ($(B)!.5!(D)!-1!(A)$) ; This doesn't work, why ? \coordinate (C) at ($(B)+...
3
votes
1answer
251 views

Automatic generation of custom coordinate system in tikz (syntax problem?)

I am writing a Python script to draw large diagrams with TikZ. These diagrams require a (d+1)-dimensional coordinate system with coordinates say a0,a1,...,ad. How can I define a coordinate system in ...
1
vote
3answers
1k views

How to define coordinates in Tikz?

I'm having a hard time figuring out how Tikz decides how to map the 2d coordinates I give it to the area I've given it to draw in. Sometimes it seems like it will auto-size based on what I've drawn ...
3
votes
1answer
529 views

How to find angle of vector sum

(Hey all, i think this is my first question here, so I'll try to get it right) I am trying to create a space vector sine wave. The phasor is created as the sum of the three phases, but I cannot get ...