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

learn more… | top users | synonyms

3
votes
1answer
66 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
41 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 ...
4
votes
1answer
124 views

How to create a date and time plot with TikZ and pgfplots

What I want to achieve is a graph, which shows the working hours per day. Input should be the triple of date, arrival time and leaving time. The x-axis holds the dates and the y-axis shows the working ...
3
votes
1answer
69 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} ...
7
votes
1answer
91 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} ...
1
vote
1answer
50 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 ...
6
votes
3answers
88 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
113 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) : ...
2
votes
0answers
34 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} ...
4
votes
1answer
56 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 ...
2
votes
1answer
58 views

Calculation of coordinates in 3d with the 3dstructuralanalysis library

The tikz library structuralanalysis provides the pointcommand. %------------------------------------------------ % point %------------------------------------------------ % ...
3
votes
1answer
69 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); ...
2
votes
1answer
76 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 ...
2
votes
0answers
50 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
64 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 ...
4
votes
2answers
121 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 ...
3
votes
1answer
109 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 ...
4
votes
3answers
350 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 ...
3
votes
1answer
63 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
85 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 ...
5
votes
1answer
60 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
138 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. ...
3
votes
1answer
151 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
112 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} ...
12
votes
4answers
476 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} ...
2
votes
1answer
103 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 ...
4
votes
1answer
82 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
203 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
138 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 ...
1
vote
0answers
54 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 ...
1
vote
0answers
206 views

Drawing a solid angle vector/cone in TikZ?

I would like to draw a "solid angle vector/cone" pointing in a specified direction in spherical coordinates and having a specified opening size (dσ or a in the examples below), akin to the examples ...
3
votes
2answers
176 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 ...
1
vote
0answers
31 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.
2
votes
1answer
258 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 ...
3
votes
1answer
131 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) ...
2
votes
1answer
145 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 ...
0
votes
1answer
203 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: ...
8
votes
3answers
998 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 ...
2
votes
1answer
59 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} ...
2
votes
1answer
238 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 ...
3
votes
1answer
322 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 ...
2
votes
1answer
228 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 ...
6
votes
1answer
139 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} ...
1
vote
2answers
93 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} ...
0
votes
0answers
96 views

Tikz/pgfplots problem: change x-axis counting at certain x-coordinate

In order to create a particular diagramm, I need the possibility to change the x-axis-counting at a certain x-coordinate so that x runs from 0-10 in steps by 1 and then changes at 10 put in further ...
4
votes
2answers
413 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} ...
1
vote
0answers
35 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} % ...
1
vote
2answers
507 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 ...
1
vote
1answer
104 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 ...
4
votes
2answers
205 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 ...