Graphics, Figures & TablesScientific Workplace Argand Diagrams

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jozdac
Posts: 2
Joined: Sun Feb 26, 2012 12:48 pm

Scientific Workplace Argand Diagrams

Post by jozdac »

Hi all, it is my first time here.


I was wondering if anyone has any clue as to how I can plot Argand Diagrams on Scientific workplace, as I seen to be unable to do so both in polar and in Cartesian form.

Thanks,

Jozdac

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Scientific Workplace Argand Diagrams

Post by Stefan Kottwitz »

Hi Jozdac,

welcome to the board!

An Argand diagram can be created for example using TikZ. Here's an example by Martin Scharrer, posted here: Circle in the complex plane (originally on TeX.SX)
complex-plane.png
complex-plane.png (20.91 KiB) Viewed 4641 times

Code: Select all

\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 `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
    \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}
Stefan
LaTeX.org admin
jozdac
Posts: 2
Joined: Sun Feb 26, 2012 12:48 pm

Re: Scientific Workplace Argand Diagrams

Post by jozdac »

So if I don't have the package Tikz integrated into my LaTeX user front I cannot draw an Argand Diagram?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

Re: Scientific Workplace Argand Diagrams

Post by Stefan Kottwitz »

I said, it can be created for example using TikZ, not that you cannot draw it without. You could also use PSTricks for example, or a LaTeX picture environment. For me it would just be easier using a high-level front-end such as TikZ than trying to do it by low-level commands.

Or us a drawing program, export it into PDF and include this in your SWP document.

Stefan
LaTeX.org admin
Post Reply