Graphics, Figures & Tablesdraw irregular circle in tikz

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

draw irregular circle in tikz

Post by Mohsen Avaji »

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

Thank you.
Yours faithfully,
Mohsen Avaji.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

draw irregular circle in tikz

Post by rais »

like this?

Code: Select all

\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
User avatar
Mohsen Avaji
Posts: 16
Joined: Mon Aug 27, 2012 12:06 am

draw irregular circle in tikz

Post by Mohsen Avaji »

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: 419
Joined: Sun Nov 16, 2014 8:51 pm

draw irregular circle in tikz

Post by rais »

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
User avatar
Mohsen Avaji
Posts: 16
Joined: Mon Aug 27, 2012 12:06 am

draw irregular circle in tikz

Post by Mohsen Avaji »

Dear Rainer
Thank your for your reply and help.
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.
User avatar
Mohsen Avaji
Posts: 16
Joined: Mon Aug 27, 2012 12:06 am

draw irregular circle in tikz

Post by Mohsen Avaji »

Hi
In the following code, how can thickness the circle and its radius?
Thank you.

Code: Select all

\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.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

draw irregular circle in tikz

Post by Stefan Kottwitz »

You can add a line width option, such as:

Code: Select all

\begin{scope}[>=latex, line width=1pt]
Stefan
LaTeX.org admin
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

draw irregular circle in tikz

Post by rais »

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
Post Reply