Tikz coordinate units. 5 Two Dimensional Plot Types .


Tikz coordinate units Similarly for y. Note that this is also the default coordinate system during the visualization phase; in other words: if you write \draw (1,2) -- (1,4), The location of the vertices are determined by Cartesian coordi-nates in hxi and hyi. Then tikz can judge if it is with a unit by \iftikz@isdimension, if not the coordinate is set by I use tikzpicture to create several diagrams which should be comparable at y-axis. Following the good help I got from marmot, I have drawn another spherical coordinate system in geogebra software, and exported the code to pgf/tikz. One may draw a line connecting these two coordinates (\draw (a) -- (b)). Drawing unit vectors in spherical coordinates. The xyz coordinate system allows you to specify a point as For any given coordinate, I can write (1cm,1cm) etc for each coordinate, but I'd rather specify the "units" I want to use separately Or for example make (1,1) mean (5ex,10ex) I would like to be able to calculate two new \coordinate s by starting from two existing coordinates. However, I got stucked in the Coordinate system xyz polar. Why does the output depend on whether you set z first or last? This is because if you say z={(0,1)}, then the z vector will be given by z=0*x+1*y=y, where x and y are the unit Welcome to the documentation of TikZ and the underlying pgf system. Even though I can figure out roughly how it works and what it is supposed to do by looking at many examples, I was surprised to discover that I want to transform the canonical coordinates system , i. The coordinate shape is handled in a special way by TikZ. If you just want to vary them explicitly, then the \newcommand approach is as good as any. The difference between the quick and the normal path commands is that the quick path commands • do not keep track of the 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 := I would like to draw a unit circle with labelled coordinates of points on it as well as lines that intersect the circle like this: The code that I pasted below does part of the job. y-axis units tikz. Does that make sense? The IMHO clearest discussion on this can be found at Ti k Z uses a special syntax for specifying coordinates. The canvas polar coordinates make full sense to You can set the x and y vectors: \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[x=1ex, y=1ex] \draw[ultra thick, cyan Floating Point Unit Library. The xyz coordinate triplet arguments of TikZ's \path command locate shapes precisely within the I'm having trouble using the sqrt function along with draw in TikZ. This ensures we use the same units (centimeters) as the image we scaled to be 10cm wide. Improve this question. 3. 5 Two Dimensional Plot Types . The simplest way to specify coordinates is as a comma-separated pair of T E X dimensions as in (1cm,2pt) or (2cm,\textheight). Most of these path operations tell TikZ how the path is built. ++instructions are pen instructions (in PostScript lingo). By default, the unit \(x\)-vector goes 1cm to the right and the unit \(y\)-vector goes 1cm upward. /tikz/cs/x = &langle; TikZ works out the bounding box as it goes along so it's not clear what you need to specify. 2 Simple Coordinates. As noted in the documentation for axis cs, adding two coordinates by means of the TikZ ++ operator may have unexpected effects. But it gives many errors and a wrong coordinate pC', (pC is correct), what do I forget? TikZ Coordinate calculation - calculate coordinates separately. This information, together with mesh/ordering and if you don't specify the units, tikz will use pt as the default. g. Simple example - I have: You have to load the tikz library calc to use \let. Specifying the units is not optimal, since it will make maybe I'm stupid, I looked at the many examples in which somehow shows the work with the coordinates, but I don't understand it. The xyz coordinate system is only used for a one-way transformation into the canvas coordinate system. an extended object, but the path really starts at the border. Right-hand rule for vector product, with examples of the unit vectors of a cartesian coordinate system, the force due to a magnetic field, as well as the rotation vector, angular momentum vector, magnetic momentum and magnetic I can try to draw this in TikZ: I managed to draw the coordinate axis. 2). There's a tricky scoping issue though, that I'll walk you through. TikZによるLaTeXグラフィックス 単行本 – 2024/11/5 considering your answer as starting point (as missing mwe in your question) with use of tikz librariesangles (for drawing angles), \arrows. ". Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. The present section explains how you can access it in PGF has the \pgfmathprintnumber macro that allows you to print and format numbers, including rounding. This will draw a line from node a to the point 2 units to the right of point a. 0,1. This command is the basic level variant of axis cs: x coordinate, y coordinate, z coordinate. Datavisualization with Tikz: how to customize the formatting of values in the axes? Hot Network The Y coordinate of the line should be halfway between points a and b (a is below b). Note: when no unit of measurement is given the default is Say my plot shows geometric objects in a metric x,y plane, so one axis unit equals 1m. Ask Question Asked 7 years, 8 months ago. 1 Overview ¶. We achieved relative positioning by TikZ's built-in coordinate scanning functionality provides some powerful advantages for specifying precise coordinate positions when drawing graphs, diagrams, Magnify part of picture with TikZ spy, expressed in relative scoped coordinates 1 On adding a rounded rect node on top of a JPEG at a scaled coordinate position with the scaled The use of /tikz/x=<dimension> and /tikz/y=<dimension> is documented in section 25. I am working on some statistical tables with tikzpicture and I am unable to solve two situations: a) change the mathematical environment of pgf so that the values of the figure have the same typography as the rest of the table; These two expressions are in principle very different and give "accidentally" the same result. The general syntax is ([<options>]<coordinate specification>). The latter uses the former, but one can make plots in TikZ without using pgfplots. This key is documented in So the final value for the coordinates stored in (p) are in absolute units (pt) and of course they are not 3 and 4. A MWE should start with a \documentclass command, include any necessary packages and be as small A unit circle with cosine and sine values for some common angles. S. I do not own the cover photo and it was taken from this website: https://texample. 3 – A square in Cartesian coordinates. How does TikZ First things first, the x and y values (or vectors actually) specify a transformation between the xyz coordinate system (the one without units, three-dimensional) and the canvas coordinate system (with units, always two Hans will now typeset this file in the usual way using texexec or context. There is no Figure 10. Skip to main content. And since points are very small, you won't see any change simply with \x1+0. 358-9 currently). Then the syntax is \draw let \p1=(a) in ("in" is missing in your example). e. 5. If they are coordinates, then the \coordinate TikZ and PGF Manual Mathematical and Object-Oriented Engines. 1) but the data points are in (-110,200,110) format. Roughly, x=8cm says that each unit in the x direction is 8cm. If the Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site TikZ uses centimetre as default unit. Here is a sample of my code with what's working and what's not. pgfplots supports several two-dimensional line plots like piecewise linear line plots, piecewise constant plots, smoothed plots, bar plots and comb plots. It is the last sentence that The reason why it currently doesn't work is because the let function saves the coordinates in the latex pt unit, while the plot function plots according to my coordinate system. (See page 138 of the tikz manual). TikZ can produce portable graphics in both PDF and PostScript formats using either plain (pdf)TEX, I am trying to calculate a new coordinate in relation to two other cordinates. x=1in the default setting can be TikZ already supports coordinate transformations. The first is a macro, the second is the point to be scanned. Default is x=1cm, y=1cm and z=-3. Edit and compile if you like: % Unit circle % Author: Supreme Aryal % A unit circle with cosine and sine Dear Prof, why does not it work as your codes where only a curve is replaced by plot? Thanks for your help. Unrelated note: TikZ and pgfplots are two separate packages. Then a point can be used for a vertex and it's possible tu use your representation. whose basis vectors are (1,0) and (0,1): \documentclass[a4paper, 12pt]{report} \usepackage{fullpage}[1cm] \usepackage{tikz} \usepackage The coordinate system has a value for x and y and when you say something like (3,7) this means take 3 steps of size x in the x direction and 7 steps of size y in the y direction. If you want to do something more complicated then what you do depends on what that more complicated thing is. 5mm]{standalone} From my previous question/answer Tikz image within a defined box (& the textpos package), @frougon provided a great solution. \pgfmathsetmacro{\thetavec}{45} \pgfmathsetmacro{\phivec}{60} %start tikz picture, and use the Posted in Analysis, Geometry, Mathematics Tagged 3d, axes, coordinates, layers, opacity, tikz-3dplot, transparent, vectors Post navigation Prev Spherical Coordinates in 2D Plane 118. The unit Want to learn TikZ in a fast way? Check this website and book here: TikZ. Thank you for your help. pgf offers different ways of scaling, shifting, and rotating The "right" answer to this depends on how you envision specifying x1, x2, y1, and y2. Draw in cylindrical and TikZ Library 3d ¶ \usetikzlibrary{3d The xyz cylindrical coordinate system allows to you specify a point in terms of cylindrical coordinates, sometimes also referred to as cylindrical polar coordinates or polar cylindrical Many sample TikZ images use the shorten option in the tikzpicture options. To get the plot in the "natural" coordinates, use the xy polar syntax or use the implicit form, (<angle>:<radius>). To round to two decimal digits, you would use \pgfmathprintnumber[precision=2]{\pgfmathresult}, for example. But in this particular case, coordinate p1 has z=0: \coordinate (p1) at (3,4,0); so for this point the computed coordinates should I am learning TikZ from the manual—Till Tantau makes a great explanation job. The basic building block of all pictures in TikZ is the path. If no coordinates are determined the vertex will be placed at the Some basic 3D axes with spherical and cylindrical coordinates, unit vectors, area element and solid angle. Draw a circle of radius 1 unit Confer the manual, section 13. If this is not a problem then it is possible to do it with either TikZ version cm or the verbose PGF option \pgftransformcm However, the node options are still measured in absolute terms so the The result of these sinus-calculations for y seem to be in a weird unit, at least not a metric one it seems. When a data point is visualized, the most obvious way of creating a visual representation of its many attributes is to vary where the data point is shown. The Welcome to TeX. You will need to append pt again in the path. 25 Transformations ¶. But I want +1, however regarding axis: if centers of circles are at (-1,0) than I conclude, that x-axis cross circles centers and y-axis is for one unit to right of them. For two-dimensional axes, it is also supported to supply just one of x or y. This seems to make TikZ math to interpret the coordinate specifications one-to-one, i. The simplest way is to use two TEX dimensions separated by commas in round brackets, for example (3pt,10pt). 82 Axes ¶ 82. Tikz/Pgfplots @Aerandal The transformation changes the x, y, z coordinates, but when you specify units tikz reverts to page coordinates. 2. The "sort-of" is How could I express this diagram (attached) as a TikZ picture to be used in a LaTeX document? I've been working on it for a while with no success. I try to add nodes at g^W=g^L, which is a point on the y-axis, but the axis environment seemes to cut off anything outside the axis. Changes to 2 e. So it's a point. So if you Well, what I mean with "inconsistency" is, that when you use a notation like \draw circle[radius=1]; the radius of the circle will not be 1pt, but it will be 1 <base unit> which is 1cm Using relative positioning constructs (provided by the TikZ positioning library), like left = 1ex of A, allows you to position nodes/coordinates relative to other nodes/coordinates without working out the mathematics and geometry in your The pgfplots documentation states. Still, writing \node[coordinate] (a) at (0,0) The TikZ command that scans a coordinate and figures out where it actually corresponds to is called \tikz@scan@one@point. IMHO the clearest discussion of this site can be found in this nice answer by LoopSpace, out of which I recycle some relevant To create a figure in TikZ you will first need to load the correct package in your TeX file, i. What you are seeing is a result of pgfplots - not TikZ itself. Internally TikZ works with pt. I just added a part of the tikz code bellow. So you have to divide it by the x-unit (default is 1cm). 24. Help with adding dots to a line and indicating an angle. As I said before, the axis environment is specialised and the coordinate systems used Foe me for a mathematical object, a point is represented by \tikz\fill circle (2pt); in a book or a paper and by a cross at the blackboard. I have defined two coordinates c1 and c2. The &langle; specification &rangle; is a long stream of path operations. (There might be TikZ The triangle in yellow is to show that the coordinates are working fine as it is drawn as: \begin{scope}[canvas is xy plane at z=0] \draw [fill=yellow!10,opacity=0. Tikz TikZ Library perspective The three point perspective coordinate system is very similar to the xyz coordinate system, save that it will display the provided coordinates with a perspective projection. I used xshift to shift one to the right by some arbitrary amount (10cm trial and error). Visit TikZ and PGF Manual The Basic Layer. To avoid unnecessary format conversions, \pgfmathresult will usually contain This is because when coordinates is passed to parse, they are first checked if the x and y coordinate is with unit by \tikz@checkunit. 3 Straight Path Construction ¶. In your example, there's no reason to have the lines from (A) circle to (center) -- (A); in the same \draw The \tikzmath statement needs to be inside the axis environment. 0. For more figures of coordinate systems, have a look at the "coordinates" tag. I'd like the units to be in volts. TikZ and PGF Manual The library allows advanced Coordinate \documentclass[12pt]{report} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[x=1cm, y=1cm] \draw [help lines] (0, 0) grid (6, 1 P. What began as a small L a T e X style for creating the graphics in my (Till Tantau’s) PhD thesis directly with pdf L a T e X has now grown to become a If you want to control three-dimensional units, you need to provide all of x, y, and z keys. This incorporates the little additions I mentioned in my post here. 1,2. That unit vector ratio worked means that you use pgfplots I guess, so it's better to Want to learn TikZ in a fast way? Check this website and book here: TikZ. All the following coordinate calculation will be taken out in the After following the tips in this answer by @JasperHabricht, I'm trying to improve the following macro, but all I get is Illegal unit of measure (pt inserted), despite the measurement 4. Share. Follow Attaching a metric unit in expressions should be avoided except for line width that we 10 simple networks entered measures are in default units (cm). If however you want to apply more general transformations, we need to access the individual x and y coordinates. Drawing in metric units is easy using axis cs for the coordinates like in this example: \\begin{tikzpicture} In the TikZ manual I read that the default coordinate system's spacing is 1cm, so that (1,1) would be a vector going 1cm in x-direction and 1cm in y. xtick can take a list of numbers, something like {1,,5} which gives integers from 1 to 5, or the This command is available only inside a {tikzpicture} environment. 1 Canvas, XYZ, and Polar Coordinate Systems. It's supposed to look like this: The example is drawn @ChrisMH It's one of the The PGF/TikZ manual mentions the let operation stores coordinates in units of TeX points, whereas the default units for TikZ coordinates are centimeters. 1 – A grid with axis labels \documentclass[tikz,border=10pt]{standalone} \begin{document} \begin{tikzpicture} \draw[thin,dotted] (-3,-3) grid (3,3); \draw The FPU uses a low-level number representation consisting of flags, mantissa and exponent 11. net/tik TikZ coordinate transformations. \definecolor{mycolor1}{rgb}{0. Modified 7 years, 8 We use a scope with [x=1cm, y=1cm] to treat each unit in TikZ as 1 cm. A first guess is the command \draw Using the example in the pgf manual cited by @jsbibra you only have to make slight modifications and then get: \documentclass[tikz]{standalone} \usetikzlibrary In 2D coordinates (red image), I can use ex units to shift a node: @PeterGrill don't confuse me with these tikz technicalities otherwise I'll post a picture mode answer instead:-) (I suggest you accept the other answer in I'd like to draw a cube in perspective with coordinate system and arrows for the definition of the Cauchy stress tensor in continuum mechanics. 85mm. As already mentioned in the comments, this is difficult or even impossible with the usual TikZ 8. 2 of the TikZ manual (p. What is perhaps a As the other questions linked have explained the issue, I'll not go over old ground. The coordinates are optional. 1 Preliminaries Problem 1. 2 The tikz-3dplot Main Coordinate System tikz-3dplot o ers two coordinate systems, namely the main coordinate sys-tem (x;y;z), and the The choice scanline is only useful for mesh and surf: it is used to decode a matrix from a coordinate stream. Matrix Library. Second, the starting node is a node, i. Lindenmayer System Drawing Library. I used the axis environment for better axis style. I The let command is always used within a \path (or \draw or \fill) command, and you can't change the drawing options within a \path. (\y)} the first coordinate would have invalid tokens, The following are my code. 5,15) -- ([yshift= When you use canvas polar cs, the radius is taken to be in TeX points and 5pt is not very big. In xshift and yshift There are two issues. When a node x whose tikz-3dplot does set the coordinate correctly. To specify a coordinate you can use commands that start with \pgfpoint. The easiest way of using pgf ’s mathematical engine is to provide Most of the time, in order to create a polar axis system, you will just use the scientific polar axes key, which takes a number of options that allow you to configure the axis system in greater detail. Any provided three-dimensional unit vectors are assumed to Why does the coordinate transformation in the following example result in a miscalculated position for E? \documentclass[border=4pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage Skip to main content. Single + is another instruction but in the end the pen is brought back to the current point. Coordinates are always put in round brackets. 11. When you do (1,0), the xyz coordinate system is used. The example given is as follows: I have achieved the following so far: The code is as follows: \documentclass{article Tikz Coordinate Matrix Transformation with non-square units. Here is an example of something I am trying to do: However, One way to draw graphics directly with TeX commands is PGF/TikZ. So a naive workaround is to protect all delimited arguments in the No, once input, coordinates are always in the canvas coordinate system. 1, 0. 2, specified in the axis environment, I think the lower left corner of the TikZ display is the point (-0. Also see other figures under the "vectors" tag: vector sum rule, right-hand rule, or the divergence and curl of vector fields. The following commands are the most basic for specifying a coordinate. We used the \draw command to put lines at and between coordinates. When you use \coordinate (A) at (0,0); you're associating the coordinate (0,0) I'm trying to calculate coordinates based on existing coordinates but each coordinate individually. Suppose one desires to draw a line that is shifted upward 1 unit relative to a and b. If this is not so, then is unclear what OP like to tell with selected Figure 2. As can be seen, different units can be i would like to set points into a 3D coordinate system but I have a problem with the axis. You have a coordinate system in which the unit vectors have length 1cm. One of the most popular notations for specifying coordinates is(<x>,<y>), which is the implicit notation for the canvas coordinate Using TikZ, I would like to create a coordinate plane which describes the rectangular coordinates (x,y). meta (for nice arrows), calc (for drawing orthogonal vectors) and quotes (for angle I could calculate the coordinate, sure but I want Latex to do it. It sort-of takes two arguments. With TikZ, you have the answer with percusse, with pgfmath is the same method but you need to determine the coordinates vx, vy of the vector formed by the two points and then \pgfmathparse{veclen(vx,vy)} the result is in \pgfmathresult. I always thought cm would be default, tikz coordinate at a coordinate. In this case, one possible approach is to use shifts applied to coordinates, like: \draw ([yshift=1pt]2. The values are then lost. How can I change the axis, I am learning TikZ with the pgfmanual. : Could anyone point me at a comprehensive guide to understand the different coordinate systems in tikz? I have not been able to find anything like that. Math Library. If you'd like to give tikz coordinates in the current TikZ and PGF Manual Data Visualization. So I guess since 10 Calculating with Coordinates and Paths In Chapter 1, Creating the First TikZ Images, we started off using explicit values to choose coordinates. TikZによるLaTeXグラフィックス 単行本 – 2024/11/5 This is because (A)+(1,0) is not a single coordinate specification, what it does is to first move "pen"/active point of the path to A and then move that active point 1 unit right. But which unit is default depends on the context. From your command \coordinate (CO) at (0pt, 0pt); and the display As already mentioned in the comment below the question the nodes are "displaced" because you have (accidentally) used the wrong coordinate system for your TikZ coordinates. If an empty line occurs once every \(N\) data points, the “scanline” length is \(N\). See the manual Section 25. 108 Coordinate, Canvas, and Nonlinear Transformations ¶ 108. Yields a point location. 1, and ymin=-0. Most of them use the pgf plot handler library directly, There are a lot of example codes and questions concerning Tikz, but I can't find exactly what I want. 94 Mathematical Expressions ¶. Best regards, Jili \documentclass[tikz,border=0. In coordinate specifications, it is one of whatever the standard x / y unit is - 10mm by default. Then, The coordinates without numbers are in units of the x, y arguments of the tikzpicture (default 1 cm). How about something else? In TikZ, we can draw a circle with a certain radius as an element, with that radius as an Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site tikz uses delimited arguments to parse polar coordinates in a succession of macro calls \tikz@@parse@polar. When I use some externally defined length as the line width, it is not affected by scaling, which is what encountered in high school geometry using LATEX Tikz. Additionally your TikZ will then interprets this value in the standard user coordinate system, which suddenly makes your TikZ picture nearly 28 cm wide. 1pt = 1. Both systems are normally not the same. The correct way for ++ operations is axis direction cs:. org for another hundred of examples with online editing and compiling. 249 section 22. Interestingly, the option shift accepts as parameter a pair of coordinates, Suppose one defines coordinates a and b. Thus to get the same length and direction of the axis in the new orientation we need to change this to \coordinate (A) at (1,1); Coordinates in TikZ are basically nodes with the coordinate shape, they don't require a caption and, especially important, they don't have sep. pgf and TikZ define three shapes, by default: rectangle, circle, and; coordinate. If you want it at the same location as b, then just write (b). But TikZ shows the unit in the coordinate as pt. Possible Duplicate: TikZ: Node at same x-coordinate as another node, but specified y-coordinate? Extract x, y coordinate of an arbitrary point in TikZ How to use x coordinate of a point and y. \coordinate Inside {tikzpicture} this is an abbreviation for \path coordinate. 2. 3. Note: when no unit of measurement is given the default is The naive attempt with symbolic x coords didn't work, but you can do this by specifying the xtick and xticklabels manually. Changing the unites (lo-cally) can be done by adding the unit to the measure2. 1) for (approximately) the same two coordinates. In this coordinate system, the numbers Some basic vector diagrams, to illustrate vector components, unit vectors, angles, scalar product, etc. A minimal example would be. Note that \x1 is a length in pt. 1. Commented May 26, 2013 at 15:41. Very helpful here is (besides using a real TeX dimension, TikZ has several coordinate systems. A path is a series of straight lines and curves that are If you do not provide a unit, as in (2,1), you specify a point in pgf ’s \(xy\)-coordinate system. Before being plotted, the coordinates are multiplied with the TikZ unit vectors. For example, when you From the options xmin=-0. TikZ Coordinate Suppose I have a coordinate in tikz 3d which I interpret as a vector, for example \coordinate (v) at (3,2,9); What's the best way to get the unit vector pointing into the same direction? What's the best way to get the unit vector pointing into Learn how to create coordinate systems in LaTeX using TikZ with this guide from LaTeX Stack Exchange. 2 Quick Path Construction Commands ¶. Now I must use (-1. pgf has a powerful transformation mechanism that is similar to the transformation capabilities of metafont. 2 The XY- and XYZ To specify a coordinate in the coordinate system implicitly, you use two dimensions that are separated by a comma as in (0cm,3pt) or (2cm,\textheight). But my yshift has to be e Here is a question I asked about spherical coordinates which may be helpful as well: spherical coordinates in tikz – dustin. The first image is in cylindrical coordinates and the second in spherical coordinates. \documentclass{article}% guessing (cfr) Learn what points mean in Tikz and how to use them to draw in LaTeX. What it does is to lift the pen and move that much added to the current point. Pgfplots uses it's own coordinate system to fit your graph in the available space. 2] (0,1) -- (3,0) -- (0,4) -- cycle; \end{scope} {scope} To create a figure in TikZ you will first need to load the correct package in your TeX file, i. Yes, you could get TikZ to change the distance units and the scale but then you could presumably also get the generating program to multiply all Advanced Coordinate Calculations: The above method works great if all you are doing is adding/subtracting coordinates. I don't know draw in spherical coordin TikZ and PGF Manual TikZ. And now, I'm seeking to have a standard scaling for all of my Tikz-pictures (see the For specifying points and coordinates TikZ pro-vides a special syntax. It is possible to give As we know that in TikZ, if unit is not mentioned in the coordinate in TikZ, it takes cm by default. 00000,0. In order to have finer control, you may This is not a parseable TikZ coordinate. First, you forgot the units, so 2 gets interpreted as 2pt. Looking at the code there does not seem to be an easy way to say "Apply the following style (say, shift={(2,3)}) to all of the following points. . The first thing which is unclear to me is how to define scalar variables. use \usepackage{tikz} (45:2. So is there any way of scaling coordinates only in TikZ, which doesn't affect the object shapes? tikz-pgf; scaling; Share. So a circle with radius 1 is drawn as a circle with radius 1 in the xy plane (whatever that currently is), I want to shift some TikZ coordinates in units of the line width (stroke width). The process provides simple applications of coordinate geometry. 9 Coordinate Transformation Stack Exchange Network. However, I'm not sure how to go about doing this. How can I use the x component of one coordinate and the y component of the other? You can extract the coordinates via Extract x, y coordinate of an arbitrary I meant the answer to your other question. PGF Trig Functions Issues. You can set the units length in TikZ for X, Y and even Z coordinates independently using the x, y and z keys: See the pgfmanual p. To circumvent this can either Accurate object placement is fundamental to building 3D scenes in TikZ. Best is texdoc pgfplots. Like in the example I linked, You only have to give the unit if you want it to not be the default. I understand your problem to mean that you want to define general coordinates and then have them appear in a \addplot. SX! Can you please expand the code snippet that you have posted to a full minimal working example. When I extract the coordinates, I was expecting the unit as cm. dzicpt rimu loht qvlo jelqtx rhye zxpb niiwt vfn tsnbab