Questions tagged [coordinates]

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

Filter by
Sorted by
Tagged with
2 votes
2 answers
53 views

Overriding the (0,0) Default When Using Pstricks Polar Coordinates

Consider the code \documentclass[12pt]{book} \usepackage{pstricks,xcolor,graphicx} \begin{document} \thispagestyle{empty} \begin{pspicture}(-5,-5)(5,12)% \psframe[...
user avatar
  • 4,907
0 votes
2 answers
60 views

tikz: draw arc between two specific points

How can I draw between two specific coordinates? Cord are (1,0) and (5,0) \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{...
user avatar
3 votes
1 answer
46 views

Changing the default length unit in tikz

Is there a way to change the default length unit in tikz to the ex unit? I have trouble while calculating complicated coordinates in tikz when I'm using the ex unit (I always get an error or a wrong ...
user avatar
1 vote
2 answers
61 views

Using AddToHook instead of background package

Recently I found out that the background package is deprecated and one should use \AddToHook{shipout/background} (comments in Positioning relative to page in XeLaTeX with package background and '...
user avatar
  • 137
7 votes
1 answer
150 views

Derived \coordinate in TikZ

Why the code not produces the line? \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at (A)+(1,0); \draw (A)--(B); \end{tikzpicture}
user avatar
1 vote
1 answer
45 views

Tikz : Point C at distance k on line AB

I'd like to define the point C on line AB such that AC=k, using the calc library and the let... in... command. This does not work, why? Is there a unit problem (C seems to be pretty close to A)? I ...
user avatar
1 vote
0 answers
26 views

Shouldn't these segment specification be equivalent? [duplicate]

According to my understanding of tikz the following two segments, both connecting the origin with the point (-1,0) should be the same. \draw[green, very thick] (0, 0) -- (-1, 0); \draw[red, very thick]...
user avatar
  • 21
0 votes
1 answer
41 views

Transform cartesian coordinates to polar coordinates

I am working with tikz. I want to draw a line that is rectangular to a certain other line and has a certain length. The coordinates are defined as cartesian. What I am searching for is a function to ...
user avatar
  • 1
0 votes
0 answers
49 views

how to get coordinates of current bounding box.north east

I want to get the coordinates of current bounding box.north east and current bounding box.south west, I tried \the\dimexpr current bounding box.north east , but an error is reported, how can I ...
user avatar
  • 149
0 votes
0 answers
28 views

save the position information of the tikzpicture bounding box

I learned from this question that each tikzpicture can generate a bounding box. I want to save the position information of the tikzpicture bounding box (such as the upper left corner and width and ...
user avatar
  • 149
1 vote
1 answer
43 views

How do I define more than 9 points in a tikzset with the let operation?

As shown in the code below \p10 will make an error, preventing long drawings. How does one overcome this? I think this is asked here but the answer is unclear for this aplication. \documentclass{...
user avatar
  • 485
2 votes
1 answer
37 views

Tikz: matching line positions with relative positioning

I am trying to draw orthogonal lines between certain points in a body of text (an exerpt from the Bible), and am using tikzmark for anchors and relative positioning to form the line shape. I need to ...
user avatar
  • 69
5 votes
2 answers
112 views

How to find the widest of several nodes with Tikz

I have several nodes and I need to find which one is the widest. This example draws a vertical line in through the center of the widest node, but I know which node to choose. \documentclass[12pt,...
user avatar
  • 830
0 votes
0 answers
36 views

How to make a spiral in coordinate system using Tikz [duplicate]

How do I generate a figure similar to this, but the value of 600° must be 1201°, and the spiral must take 3 revolutions (1201°/360°=3 revolutions).
user avatar
4 votes
1 answer
94 views

How to properly create figures (such as coordinate system) in Tikz in a timely manner?

I am new to LaTex and Tikz Package. I am trying to create figures in Tikz (which was recommended to me in my previous question). This is what I had made after days of tinkering. However, I made this ...
user avatar
1 vote
0 answers
74 views

Pgfplots: plot exponentially halving x values at regular intervals

I want to plot a dataset with pgfplots. In my dataset, 0 < x < 1 and everything interesting happens for values of x close to 1. In particular, the interesting points happen at halving intervals ...
user avatar
  • 11
7 votes
2 answers
270 views

Tikz: Extract polar coordinate

Is there a (simple) way to extract polar coordinates in Tikz? Motivation: I define two points (a) and (b) as intersection of a line and a circle (center at the origin) and then I want to an arc ...
user avatar
2 votes
1 answer
61 views

How to add cutting marks aligned with elements on the page?

I am working on a memory card game for my pupils and have set up a grid of 6cm x 6cm cards which looks like this: Problem is that I am very bad at using this cutting machine and always miss the lines....
user avatar
  • 177
2 votes
1 answer
56 views

Aligning two coordinate systems in tikz

I am trying to draw Minkowski diagrams using tikz and got as far as below. How do I align the origins of the two coordinate systems, i.e. how do I move up the B-system? I tried various things with the ...
user avatar
1 vote
2 answers
61 views

Pgfplots: nodes near coords throws "Undefined control sequence" error

I am trying to plot a bar chart using tikz. I am struggling with placing numbers above the bars. I use the "nodes near coords" option but I always get "undefinded control sequence" ...
user avatar
  • 51
0 votes
1 answer
45 views

drawing objects on grid with empty positions

I would like to regularly space objects over a figure, but have some of the grid positions empty. Method 1 below works, but makes it hard to leave grid positions empty (would need some complicated if ...
user avatar
0 votes
0 answers
55 views

Line code not working [duplicate]

\draw[thick] (pi/4,0)--(pi/4,1); is not working \documentclass[a4paper]{article} \usepackage[margin=1.5cm]{geometry} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{multicol} \usepackage{...
user avatar
1 vote
1 answer
97 views

TikZ: Placing a coordinate or node at end of edge

How can I place a node or coordinate at end of the edge? I expected this syntax: \draw (0,0) edge +(1,1) coordinate (x); Because the same syntax with the -- command, it works: \draw (0,0) -- +(1,1) ...
user avatar
1 vote
2 answers
91 views

On adding a rounded rect node on top of a JPEG at a scaled coordinate position with the scaled inner xsep and ysep

Let us assume that we have a JPEG file of mushrooms given in the following link: WIKI MUSHROOMS To make it easier to find the desired points in the JPEG, Let us draw a labeled grid on top of the image ...
user avatar
  • 1,491
1 vote
1 answer
93 views

Simplest method for positioning Tikz shape over image in relative coordinates

What concise recipee is there to overlay objects on top of images, using relative coordinates (such as fraction of image width/height)? For example trying to draw a red rectangle to highlight a ...
user avatar
1 vote
1 answer
22 views

The path connecting a point to a node fails to reach the actual node

This might be a very simple question and may have been asked here. I just don't know what the keywords are if it does. Let me start with an example: \documentclass[border=10pt,varwidth]{standalone} \...
user avatar
  • 229
1 vote
2 answers
86 views

Clipped scope's bounding box

In the following example, I \clip out a 3x3 rectangle of an image. I'd expect the resulting scope to have a bounding box of 3x3, so the two text nodes should line up with the extent of the clipped ...
user avatar
  • 945
2 votes
2 answers
109 views

Pixel coordinates for TikZ overlays

I would like to create a tikzpicture where a rectangular part is imported from a raster image (let's say a PNG), and there are other TikZ nodes on top of it. The tricky part is that I need to position ...
user avatar
  • 945
0 votes
2 answers
77 views

\foreach coordinate names in PGFPlots

I have some points defined via \coordinate (A1) at (-4,0); \coordinate (B1) at (-2,1); \coordinate (C1) at (0,0); ... And I want to place a little dash at their location. I tied two approaches, but ...
user avatar
  • 1,988
2 votes
1 answer
62 views

tikz-3dplot : discordance between polar and Cartesian coordinates ? (solved)

Recently I used the package tikz-3dplot to draw a figure until I was confronted to a very strange issue. I finally build a Minimal Working Example to isolate the problem and fully annotated it to ...
user avatar
  • 21
1 vote
1 answer
67 views

Adjustable (circuit-)tikzpicture as standalone with interchangeable nodes/pathes (in TexStudio)

Im looking for a smooth way to adjust an existing circuitikz as standalone to create closely related outputs with varying content. Like switching through different settings for my scheme. E.g. the ...
user avatar
  • 387
2 votes
1 answer
50 views

Negating coordinates

This actually seems like an easy thing to do but I have not found any solution: I would like to negate/invert predefined coordinates as simple and with few characters as possible. I.e. using (A) as (0,...
user avatar
  • 387
1 vote
0 answers
38 views

Transform pgfplot coordinates; "axis cs" but for \pic Radii

I am trying to use angle radius in \pic without units, but instead with the axis coordinate system. In a sense the same as axis cs does for coordinates, but just for this radius. I have looked through ...
user avatar
  • 11
1 vote
1 answer
42 views

Comma in x coord (interval)

How can I replace the dot with a comma in x coords? \documentclass[border=10pt, 12pt]{standalone} \usepackage{pgfplotstable} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage{times} \...
user avatar
0 votes
1 answer
63 views

Coordinate system confusion of TikZ and PGFPlots [duplicate]

So, I'm drawing graphs using TikZ and pgfplots for my lecture notes. My question is about the two coordinate systems that are used in the following code: \documentclass{article} \usepackage{tikz} \...
user avatar
3 votes
2 answers
134 views

Partition Triangle

I am working on a paper on integer partitions and I want to add something like this. This is not my picture, it is from another paper, but is it possible to do this on LaTex? I want to be able to ...
user avatar
  • 85
2 votes
1 answer
78 views

How to show the coordinate of certain points on the axes of a graph?

Here is the code I want to extend \begin{tikzpicture} \begin{axis}[ date coordinates in=x, xticklabel={\hour:\minute}, xticklabel style = {rotate=45,anchor=near xticklabel}, xmajorgrids=true, xmin={...
user avatar
2 votes
2 answers
88 views

TikZ Ellipse and Arc Operations Acting Unexpected

I'm trying to draw the arc of an ellipse which is centered at the origin. I'd like it to start drawing at an initial angle of 45 degrees and end at 90 degrees. From this question on this site, there ...
user avatar
  • 547
2 votes
1 answer
65 views

How to define an adaptive grid or coordinate system on an image?

I often need to draw on an image precisely. For this, I draw two paths on the image and I position the points proportionally on the image. This solution allows me to change the size of the image ...
user avatar
  • 11.4k
1 vote
1 answer
43 views

Is there some easy way to place the shape with coordinates?

I'm very to new to the latex so I may asking the stupid question. I want to place a diagram of a cylinder at a position specified by coordinates. I wonder that if such below codes exists. \cylinder (...
user avatar
1 vote
1 answer
35 views

How can one use named coordinates and still do the coordinate transformations (`shift`, `rotate` etc.)?

Consider this MWE: \documentclass[tikz]{standalone} \usepackage{mwe} \begin{document} \begin{tikzpicture} \draw [help lines, step=1cm] (0,0) grid (4,2); \coordinate[label={$X$}] (X) at (0,0); ...
user avatar
  • 529
2 votes
1 answer
117 views

Reuse of coordinate names in Tikz

Many times I reuse help coordinate names in tikz pictures. Normally, they are overwritten. Now I have found an instance where they are maintained. \documentclass{article} \usepackage{tikz} \begin{...
user avatar
1 vote
0 answers
31 views

Presentation with beamer - How to make graphics and text stick at defined coordintates

I'm new to Latex and right now I'm trying to design my presentation. However, I don`t know how to be able to be precise about the location of my pictures. (E.g. in Powerpoint I could just drag them to ...
user avatar
  • 367
0 votes
0 answers
27 views

Taking coordinates of Test.pos file type not possible!

1. Test.tex Running Test.tex (see below) saves the coordinates (as pt, not mm or sp) of \eins{title 1}{some text } in the file Test.pos, which is: % this is Test.tex \documentclass{article} ...
user avatar
3 votes
1 answer
144 views

Using tikz-calc addition of coordinates along with macros

I am trying to use tikz-calc to automatically calculate coordinates in custom macros, using the coordinate addition function ($ (x,y) + (a,b) $). Things seem to go awry when I try to add coordinates ...
user avatar
1 vote
0 answers
95 views

pstricks rput coordinates and rotation broken

when using pstricks rput, all coordinates are piled up and rotations are piled up and the rotation also doesn't work. Anchorage and other functionality seems to work. I'm using Xelatex on an Arch ...
user avatar
0 votes
1 answer
342 views

Multiple ornaments between the corners

I would like to bring in several ornamental elements in the lines between the corners. I'am usigng, \begin{tikzpicture}[every node/.style={inner sep=0pt}] \node[shift={(1.cm,-1cm)},anchor=north west](...
user avatar
0 votes
1 answer
45 views

Defining a coordinate (instead of node) with in a graph tikz

When drawing a tikz graph, can I specify that a point (P) is a coordinate, rather than a node (G1, G2)? I would want to do this because I find coordinates are more precise than empty nodes, and there ...
user avatar
0 votes
1 answer
110 views

TikZ coordinate that refers to the last "current coordinate"

Is it possible, within a TikZ path, to refer to the "current coordinate" as another coordinate? To make it clear what I want, take this example, which I often end up doing because I don't ...
user avatar
  • 1,452
0 votes
0 answers
100 views

How to plot geographic coordinates with tikz?

Hello I'm trying to plot geographic coordinates of a route between real locations. I'm struggling to show the graph in full page or zoomed in. I searched a bit on internet and I can't seem to find the ...
user avatar

1
2 3 4 5
8