Underleaf Logo
Underleaf
Blog
Log InTry Free

Learn TikZ

Getting Started

  • What is TikZ?
  • TikZ for Beginners
  • Basic Setup

Coordinates in TikZ

Master the different coordinate systems and positioning techniques in TikZ.

Cartesian Coordinates

The default coordinate system uses (x,y) pairs. The default unit is centimeters:

Available Units

UnitNameSize
cmCentimeters1 cm (default)
mmMillimeters0.1 cm
inInches2.54 cm
ptPoints1/72.27 in
emEm (font-relative)Width of 'M'
exEx (font-relative)Height of 'x'

Polar Coordinates

Specify points using angle and distance: (angle:radius)

Relative Coordinates

Use ++ and + for relative positioning:

Named Coordinates

Save coordinates for reuse with names:

Coordinate Calculations

Use the calc library for mathematical coordinate operations:

Intersection Points

Find where lines intersect using the intersections library:

Node Anchors

Nodes have predefined anchor points for precise connections:

Transformations

Apply transformations to coordinates:

Canvas Transformations

Change the default coordinate system:

Next Steps

Continue learning TikZ:

  • Nodes and Labels - Position text and shapes
  • Flowcharts - Use coordinates in diagrams
  • Graphs - Network diagrams with coordinates

Try it free

Sketch it — AI draws the TikZ.

Upload a photo of a hand-drawn diagram, flowchart, or plot and Underleaf generates the TikZ code for you. 10 free credits every month, no credit card required.

Convert your diagram
A hand-drawn sketch converted into a clean TikZ diagram

Coordinates in TikZ

Master the different coordinate systems and positioning techniques in TikZ.

Cartesian Coordinates

The default coordinate system uses (x,y) pairs. The default unit is centimeters:

Available Units

UnitNameSize
cmCentimeters1 cm (default)
mmMillimeters0.1 cm
inInches2.54 cm
ptPoints1/72.27 in
emEm (font-relative)Width of 'M'
exEx (font-relative)Height of 'x'

Polar Coordinates

Specify points using angle and distance: (angle:radius)

Relative Coordinates

Use ++ and + for relative positioning:

Named Coordinates

Save coordinates for reuse with names:

Coordinate Calculations

Use the calc library for mathematical coordinate operations:

Intersection Points

Find where lines intersect using the intersections library:

Node Anchors

Nodes have predefined anchor points for precise connections:

Transformations

Apply transformations to coordinates:

Canvas Transformations

Change the default coordinate system:

Next Steps

Continue learning TikZ:

Underleaf Logo
Underleaf

Practical tools for academic writing, document conversion, and research workflows.

Go to appContact us

Company

PricingBlogTutorialsConference TemplatesConference Deadlines

Free Tools

Image to LaTeXExcel to LaTeXArXiv to LaTeXTikZ GeneratorLaTeX Table GeneratorCitation GeneratorThesis GeneratorChrome ExtensionAll Tools

Ask AI about Underleaf

Ask ChatGPTAsk ClaudeAsk Perplexity

© 2026 Underleaf. All rights reserved.