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 anchor option, which moved the system around, but I couldn't get it to where it is supposed to be.



       anchor=south west,
       axis lines=center,
       xmin=0, xmax=14.9,
       xtick distance=1,  %xticklabel={\empty},
       ytick distance=1,  %yticklabel={\empty},
       x={1cm}, y={1cm},
       xlabel={$t_\mathrm{A}$ in \SI{e-8}{\second}}, ylabel={$x_\mathrm{A}$ in \SI{e-8}{\meter}},
       thick, every tick/.style={thick}
       anchor=south west,
       axis lines=center,
       xtick distance=1, % xticklabel={\empty},
       ytick distance=1, % yticklabel={\empty},
       x={(1.25cm,0.75cm)}, y={(0.75cm,1.25cm)},
       xlabel={$t_\mathrm{B}$ in \SI{e-8}{\second}}, ylabel={$x_\mathrm{B}$ in \SI{e-8}{\meter}},
        xlabel style={right},
       thick, every tick/.style={thick},

  • 2
    anchor=origin for both? Possibly specifying the position with at={(x,y)} in addition? Nov 6, 2021 at 22:58
  • Great! That simple. Somehow I only found north/south/east/west wherever I looked. Nov 6, 2021 at 23:45
  • Why not look at the answer(by me), you already got!? tex.stackexchange.com/a/602012/8650 Nov 7, 2021 at 0:02
  • 1
    @hpekristiansen Because in that answer it was center aligned, which works if both systems are symmetrical, which in this case here they are not. Nov 7, 2021 at 0:11

1 Answer 1


The anchors of an axis are described in the pgfplots manual section 4.19 Alignment options, (page 374-75, in the manual for version 1.18.1).

For your case, add anchor=origin to both environments, which will place their origins at the same coordinate (or the coordinate specified by at={(<coordinate>)}).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .