TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to draw a graph in TikZ that has self-loops, and I'd like to be able to specify their position not only as "right" or "above", but something like "above right", i.e. at a 45° angle.

How do I do that?

share|improve this question
Welcome to TeX.SE! – ℝaphink Jun 8 '11 at 15:12
Welcome! Not sure if I understand you correctly, but are you looking for something like that shown in the first example of section 51.4, "Loops", of the PGF (v. 2.10) manual? (\node [circle,draw] {a} edge [in=30,out=60,loop] ();) – Torbjørn T. Jun 8 '11 at 15:25
That's it! Many thanks @torbjorn-t! – Anto Jun 8 '11 at 15:32
No problem. I added it as an answer as well. – Torbjørn T. Jun 8 '11 at 15:34

There is an example in the pgf/TikZ manual (for pgf v.3.0.0 dated December 20 2013, section 70.4 Loops) that demonstrates this:


\node [circle,draw] {a} edge [in=30,out=60,loop] ();

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.