Graphics, Figures & Tablesdraw image of functions in horizontal

Information and discussion about graphics, figures & tables in LaTeX documents.
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

draw image of functions in horizontal

Post by jadhavboys »

hello friends,
i want to draw image of functions in horizontal way using curved arrow.
that is first i want a circle (i.e. solid unit disk in gray) then(curved arrow) xy plane with first and second qudrant highlited(grey color) then(curved arrow)xy plane with -ve x axis highlited then(curved arrow) xy plane with -ve x axis highlited from -1/4 to infinity.
regards

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

draw image of functions in horizontal

Post by Johannes_B »

I have absolutely no idea how the product should look like. I bet our drawing experts will feel the same. Please show us what you got so far by posting a minimal working example. An image, maybe even hand drawn, will also be needed.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: draw image of functions in horizontal

Post by Stefan Kottwitz »

What are you using as drawing package? PStricks? TikZ? MetaPost? Something else?

As Johannes said, please show the code you already have, so not each reader has to write something new from scratch. (even without knowing, which package to use)

What is the problem part of the whole drawing? The circle? An arrow?

Stefan
LaTeX.org admin
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

sorry for the confusion i am attaching the pictures what i want to plot,
please help me in this, i didnt got any idea how to do this :|
regards,
Attachments
this the first image i want to plot
this the first image i want to plot
DSC_0174-1.jpg (130.58 KiB) Viewed 5646 times
and this is second
and this is second
DSC_0172.jpg (377.94 KiB) Viewed 5646 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: draw image of functions in horizontal

Post by Stefan Kottwitz »

That's not hard. I'll have a look later, at least it needs some time.
I hope you subscribed to the topic so you would get an email if there's a new answer, or have a look later here soon. :-)

Btw. smaller images would be nice, the forum layout doesn't work so well with large images.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

draw image of functions in horizontal

Post by Stefan Kottwitz »

At TeXample.net there is a complex plane TikZ example sample by Martin Scharrer, I just added

\usetikzlibrary{patterns}

to get the option pattern=north east lines for filling a circle.

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{patterns}
\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 `node`s:
    \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 `node`s. 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
    \draw [pattern=north east lines,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}
And this way you can draw a curved arrow with text above:

\draw (3,3) edge [-latex,bend left] node [above] {$\frac{1+z}{1-z}$} (4,3);

You can use this as a starting point for your drawings.

You can type texdoc pgf to open the TikZ manual, or download online: TikZ.

Stefan
LaTeX.org admin
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

@stefan.. very thanks for your kind help,
i want to know how to draw squzeed circle as in second fig.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

draw image of functions in horizontal

Post by Stefan Kottwitz »

I made it on TeXwelt using the hobby package:

Code: Select all

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{hobby}
\begin{document}
\begin{tikzpicture}
  \draw [thick, ->] (-3,0) -- (3,0) node [anchor=north west] {};
  \draw [thick, ->] (0,-3) -- (0,3) node [anchor=south east] {$\mathbf{C}$};

  \draw (0,2) to [closed, curve through = {(1.4,1.2) (1.5,1) (2,0)  (1.2,-0.2)
    (0,-1.4) (-1.5,-0.8) (-0.7,0) (-1.4,1) (-0.2,1.5)}] (0,2);

\end{tikzpicture}
\end{document}
set.png
set.png (3.18 KiB) Viewed 5578 times
Stefan
LaTeX.org admin
jadhavboys
Posts: 26
Joined: Tue Feb 28, 2012 2:31 pm

Re: draw image of functions in horizontal

Post by jadhavboys »

there is an error that is.


can't find file `tikzlibraryhobby.code.tex'.
<argument> ...nput tikzlibrary\pgf@temp .code.tex
\catcode `\@ =\csname tikz...
l.3 \usetikzlibrary{hobby}

(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
<argument> ...nput tikzlibrary\pgf@temp .code.tex
\catcode `\@ =\csname tikz...
l.3 \usetikzlibrary{hobby}

! ==> Fatal error occurred, no output PDF file produced!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Re: draw image of functions in horizontal

Post by Stefan Kottwitz »

You need to install the package, use your TeX package manager or visit the link above to CTAN.

Stefan
LaTeX.org admin
Post Reply