Hi
How to draw figure of attach file in LaTeX by Tikz?
Thank you.
LaTeX forum ⇒ Graphics, Figures & Tables ⇒ draw irregular circle in tikz
- Mohsen Avaji
- Posts: 14
- Joined: Mon Aug 27, 2012 12:06 am
draw irregular circle in tikz
Yours faithfully,
Mohsen Avaji.
Mohsen Avaji.
like this?
KR
Rainer
\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.
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.
Mohsen Avaji.
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

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
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.
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.
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.
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.
Mohsen Avaji.
- Stefan Kottwitz
- Site Admin
- Posts: 9617
- Joined: Mon Mar 10, 2008 9:44 pm
You can add a
Stefan
line width
option, such as:
\begin{scope}[>=latex, line width=1pt]
Stefan
LaTeX.org admin
In this case you could omit the
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
KR
Rainer
{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
Return to “Graphics, Figures & Tables”
Who is online
Users browsing this forum: No registered users and 10 guests