## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ draw irregular circle in tikz

Information and discussion about graphics, figures & tables in LaTeX documents.
Mohsen Avaji
Posts: 14
Joined: Mon Aug 27, 2012 12:06 am

### draw irregular circle in tikz

Hi
How to draw figure of attach file
irregular.png (3.21 KiB) Viewed 1314 times
in LaTeX by Tikz?

Thank you.
Yours faithfully,
Mohsen Avaji.

rais
Posts: 268
Joined: Sun Nov 16, 2014 8:51 pm
like this?
\documentclass[tikz]{standalone}\usetikzlibrary{decorations.pathmorphing}\begin{document}\begin{tikzpicture}\fill (0,0) circle [radius=1pt] node  [below right] {$z_0$};\draw [blue!75!black, very thick, decorate, decoration={random steps}]  (0,0) circle [radius=3cm] ;\draw[red!50!black, decorate, decoration={bumps, segment length=2cm, amplitude=2pt}] (0,0) -- (30:3);\draw[green!50!black, decorate, decoration={bumps, segment length=2cm, amplitude=2pt}] (0,0) -- (150:3);\draw[blue!50!black, decorate, decoration={bumps, segment length=2cm, amplitude=2pt}] (0,0) -- (270:3);\end{tikzpicture}\end{document}

KR
Rainer

Mohsen Avaji
Posts: 14
Joined: Mon Aug 27, 2012 12:06 am
Dear Kr Rainer
Thank you for your help and suggestion, in visual tikz I found some beautiful picture
but non of them they were not similar to the attached figure.

Is there another way to draw this figure?

Best wishes for you.
Yours faithfully,
Mohsen Avaji.

rais
Posts: 268
Joined: Sun Nov 16, 2014 8:51 pm
Mohsen Avaji wrote:in visual tikz I found some beautiful picture
but non of them they were not similar to the attached figure.

does this mean you did not try the code I provided?
Yes, it's not matching your figure 100%, but I fail to see a point in trying to achieve that, unless this irregular' is something else than freehand' and follows some rules---rules, I have yet to see.
And, of course, feel free to tweak some of the parameters like amplitude', segment length', and the decoration itself.
Have a look into the tikz-manual, too, especially path morphing' and decorations'.

BTW: KR' stands for Kind Regards' (I must confess I'm lazy at times;-)

KR
Rainer

Mohsen Avaji
Posts: 14
Joined: Mon Aug 27, 2012 12:06 am
Dear Rainer
Before I ask my question on this site, I had seen Tikz-manual.
I saw your code and checked it, but it wasn't what I wanted.
I found the answer of my question.

Thanks again.
Yours faithfully,
Mohsen Avaji.

Mohsen Avaji
Posts: 14
Joined: Mon Aug 27, 2012 12:06 am
Hi
In the following code, how can thickness the circle and its radius?
Thank you.

\begin{tikzpicture}\begin{scope}[>=latex]\draw (2,0.8) node{$a(z-z_{0})F(z)$};\draw[->] (1.2,0.2) to [out=30, in=150] (2.2,0.2) ;  \draw[clip] plot[smooth cycle,variable=\t,samples at={0,45,...,315}] (\t:{1*(1+0.1*rnd)}); \foreach \X [count=\Y starting from 0] in {red,blue,green!70!black} {\draw[\X] plot[smooth,variable=\t,samples at={0,0.25,...,1.75}]  ({15+6*(rnd)+120*\Y}:\t); } \end{scope}\end{tikzpicture}
Yours faithfully,
Mohsen Avaji.

Stefan Kottwitz
Posts: 9568
Joined: Mon Mar 10, 2008 9:44 pm
You can add a line width option, such as:

\begin{scope}[>=latex, line width=1pt]

Stefan

rais
Posts: 268
Joined: Sun Nov 16, 2014 8:51 pm
In this case you could omit the {scope} environment completely and apply its options directly to the {tikzpicture} environment.
Instead of line width=...', you could also use any of the predefined line widths, such as thick', 'very thick', and the like.
If you want to have different line widths for the circle and its radii, e.g., to subdue the radii, you could put such a line width option into the options for \draw, like
\draw[very thin, \X]

KR
Rainer