# Example: Circle in the complex plane

Published 2012-01-06 | Author: Martin Scharrer
Answer to a question on TeX.SX: Drawing a circle in the complex plane.

Do you have a question regarding this example, TikZ or LaTeX in general? Just ask in the LaTeX Forum.

% Drawing a circle in the complex plane
% Author: Martin Scharrer
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}[thick,font=\scriptsize]
% Axes:
% Are simply drawn using line with the -> option to make them arrows:
% The main labels of the axes can be places using nodes:
\draw [->] (-5,0) -- (5,0) node [above left]  {$\Re\{z\}$};
\draw [->] (0,-5) -- (0,5) node [below right] {$\Im\{z\}$};

% Axes labels:
% Are drawn using small lines and labeled with nodes. The placement can be set using options
\iffalse% Single
% If you only want a single label per axis side:
\draw (1,-3pt) -- (1,3pt)   node [above] {$1$};
\draw (-1,-3pt) -- (-1,3pt) node [above] {$-1$};
\draw (-3pt,1) -- (3pt,1)   node [right] {$i$};
\draw (-3pt,-1) -- (3pt,-1) node [right] {$-i$};
\else% Multiple
% If you want labels at every unit step:
\foreach \n in {-4,...,-1,1,2,...,4}{%
\draw (\n,-3pt) -- (\n,3pt)   node [above] {$\n$};
\draw (-3pt,\n) -- (3pt,\n)   node [right] {$\n i$};
}
\fi
\end{scope}
% The circle is drawn with (x,y) circle (radius)
% You can draw the outer border and fill the inner area differently.
% Here I use gray, semitransparent filling to not cover the axes below the circle
\path [draw=none,fill=gray,semitransparent] (+1,-1) circle (3);
% Place the equation into the circle:
\node [below right,darkgray] at (+1,-1) {$|z-1+i| \leq 3$};
\end{tikzpicture}
\end{document}


• #1 Memento, September 4, 2012 at 7:03 p.m.

Cannot compile any of these samples. For example for this one:

Preview: Fontsize 10pt ! Missing number, treated as zero. \advance l.39 }

• #2 eigentlich, May 13, 2013 at 3:25 a.m.

I am sure this post has touched all the internet visitors, its really really pleasant paragraph on building up new weblog.

• #3 jahr, May 13, 2013 at 3:36 p.m.

Greetings! Very useful advice in this particular article! It is the little changes that produce the most significant changes. Many thanks for sharing!

• #4 welcome, May 13, 2013 at 8:35 p.m.

Great post. I was checking continuously this blog and I'm impressed! Very helpful information specifically the last part :) I care for such information much. I was seeking this certain info for a very long time. Thank you and good luck.

• #5 bleibt, May 13, 2013 at 9:56 p.m.

An impressive share! I have just forwarded this onto a co-worker who had been doing a little homework on this. And he in fact ordered me lunch due to the fact that I discovered it for him... lol. So let me reword this.... Thanks for the meal! ! But yeah, thanx for spending time to talk about this subject here on your blog.

• #6 keinen, May 14, 2013 at 10:16 a.m.

At this time I am going away to do my breakfast, when having my breakfast coming over again to read more news.

• #7 Samual, May 14, 2013 at 7:47 p.m.

I like what you guys are up too. Such clever work and coverage! Keep up the awesome works guys I've you guys to my own blogroll.

• #8 Reed, May 16, 2013 at 1:17 a.m.

Każdy ludzie, których poznałeś – rzeczywiście wszyscy – nie pojawili się w tej okolicy przypadkowo. Przyszli, by Cię czegoś nauczyć. Z formułki wybieramy sobie ludzi, których mamy spotkać przed narodzinami.

Jednak dzisiaj zagłębie się w 1, specyficzny rodzaj poznania, to znaczy: Bliskości Inkarnacyjnej. Podejrzewam, że każdy ma w otoczeniu osobę, którą znaliśmy w poprzednich wcieleniach… W charakterze to odczuć?

• #9 najlepsza, May 17, 2013 at 4:37 p.m.

Excellent website. Lots of useful info here. I am sending it to a few buddies ans additionally sharing in delicious. And of course, thanks to your effort!

• #10 moj wortal, May 17, 2013 at 4:47 p.m.

I seriously love your website.. Pleasant colors & theme. Did you create this amazing site yourself? Please reply back as I'm planning to create my very own blog and want to find out where you got this from or what the theme is named. Thank you!

• #11 zaparszam, May 17, 2013 at 11:08 p.m.

Thank you for sharing your info. I truly appreciate your efforts and I am waiting for your next write ups thank you once again.

• #12 obczaj, May 17, 2013 at 11:17 p.m.

whoah this blog is excellent i really like reading your articles. Keep up the great work! You already know, lots of persons are hunting round for this information, you can aid them greatly.

• #13 test, May 18, 2013 at 1:33 a.m.

Pretty section of content. I just stumbled upon your weblog and in accession capital to claim that I acquire in fact loved account your weblog posts. Anyway I'll be subscribing on your augment or even I achievement you get entry to consistently rapidly.

• #14 strona, May 18, 2013 at 1:43 a.m.

No matter if some one searches for his required thing, thus he/she wants to be available that in detail, so that thing is maintained over here.

• #15 index, May 18, 2013 at 2:18 a.m.

I believe this is one of the so much significant info for me. And i'm satisfied reading your article. However should statement on some general issues, The web site style is ideal, the articles is in point of fact great : D. Just right process, cheers

• #16 polecam, May 18, 2013 at 2:26 a.m.

We're a bunch of volunteers and starting a new scheme in our community. Your site provided us with helpful info to work on. You've done a formidable task and our entire group will be grateful to you.

• #17 tutaj, May 18, 2013 at 3:09 a.m.

I would like to thank you for the efforts you've put in writing this site. I am hoping to check out the same high-grade content by you in the future as well. In fact, your creative writing abilities has encouraged me to get my own website now ;)

• #18 worden, May 20, 2013 at 11:36 p.m.

Hi there, You have done an excellent job. I'll certainly digg it and personally recommend to my friends. I am confident they will be benefited from this website.