Tikz latex question (Evgeny.Makarov)

  • Context: LaTeX 
  • Thread starter Thread starter Dustinsfl
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
SUMMARY

The discussion focuses on creating complex plane graphics using TikZ in LaTeX, specifically addressing issues with shading areas defined by inequalities. Users discuss the correct syntax for TikZ commands, including the use of patterns and the proper way to define dashed lines. Key errors highlighted include incorrect option syntax in the TikZ environment and the necessity of including the TikZ package in the preamble. The recommended solution involves modifying the fill command and ensuring the correct version of PGF/TikZ is used.

PREREQUISITES
  • Understanding of LaTeX document structure
  • Familiarity with TikZ library for graphics
  • Knowledge of complex numbers and the complex plane
  • Basic experience with LaTeX error troubleshooting
NEXT STEPS
  • Learn TikZ shading techniques for complex plane graphics
  • Explore TikZ version compatibility and updates, specifically PGF/TikZ 2.10
  • Research LaTeX error messages and debugging strategies
  • Investigate advanced TikZ options for line styles and patterns
USEFUL FOR

Mathematicians, educators, and researchers who utilize LaTeX for creating complex plane visualizations, as well as anyone interested in mastering TikZ for graphical representation in academic documents.

Dustinsfl
Messages
2,217
Reaction score
5
\begin{align}
\frac{1}{4} &< (1 - u)^2 + \left(v + \frac{1}{2}\right)^2\notag\\
\frac{1}{4} &< (1 - u)^2 + \left(v - \frac{1}{2}\right)^2\notag
\end{align}

How can I make this on the complex plane with the appropriate area shaded?

u is the real axis and v the imaginary
 
Physics news on Phys.org
dwsmith said:
\begin{align}
\frac{1}{4} &< (1 - u)^2 + \left(v + \frac{1}{2}\right)^2\notag\\
\frac{1}{4} &< (1 - u)^2 + \left(v - \frac{1}{2}\right)^2\notag
\end{align}

How can I make this on the complex plane with the appropriate area shaded?

u is the real axis and v the imaginary

I would instead like to graph the image $u < 1$ and $\frac{1}{16} < \left(u - \frac{3}{4}\right)^2 + v^2$
 
dwsmith said:
I would instead like to graph the image $u < 1$ and $\frac{1}{16} < \left(u - \frac{3}{4}\right)^2 + v^2$
This code

Code:
 \usetikzlibrary{arrows,patterns,decorations.pathmorphing}
  \begin{tikzpicture}[scale=2.5,>=stealth']
 \fill[even odd rule,pattern=north east lines,pattern color=black!30,decoration=random steps]
   (1,1.25) -- (1,-1.25) decorate { -- (-.75,-1.25) -- (-.75,1.25) -- cycle}
   (.75,0) circle (.25);
 \draw[->] (-1,0) -- (1.5,0) node[below] {$u$};
 \draw[->] (0,-1.5) -- (0,1.5) node[left] {$v$};
 \draw[thick] (.75,0) circle (.25);
 \draw[thick] (1,1.25) -- (1,-1.25);
 \node[below left,fill=white,inner sep=1pt] at (.5,0) {$\frac{1}{2}$};
 \node[below right,inner sep=1pt] at (1,0) {$1$};
 \end{tikzpicture}
gives

argand1.png
 
I am getting an error on the line \begin{tikzpicture}[scale=2.5,>stealth']
 
dwsmith said:
I am getting an error on the line \begin{tikzpicture}[scale=2.5,>stealth']
First, it should be " >=stealth' ", not " >stealth' ". In fact, options in square brackets are optional here.

Did you say \usepackage{tikz} in the preamble? What is the error message?
 
Evgeny.Makarov said:
First, it should be " >=stealth' ", not " >stealth' ". In fact, options in square brackets are optional here.

Did you say \usepackage{tikz} in the preamble? What is the error message?

Ok thanks. Now I have this message 1.114... or =black!30,decoration = random steps]

---------- Post added at 17:38 ---------- Previous post was at 17:36 ----------

Evgeny.Makarov said:
Did you say \usepackage{tikz} in the preamble? What is the error message?

Of course
 
dwsmith said:
1.114... or =black!30,decoration = random steps]
This does not look like a complete error message. I am not sure where 1.114 came from.

Try replacing

Code:
\fill[even odd rule,pattern=north east lines,pattern color=black!30,decoration=random steps]
   (1,1.25) -- (1,-1.25) decorate { -- (-.75,-1.25) -- (-.75,1.25) -- cycle}
   (.75,0) circle (.25);

with

Code:
 \fill[pattern=north east lines]
   (1,1.25) -- (1,-1.25) -- (-.75,-1.25) -- (-.75,1.25) -- cycle
   (.75,0) circle (.25);

You can also try removing other lines.

Also, I am using PGF/TikZ 2.10. Your version can be generated using the command \pgfversion.
 
Evgeny.Makarov said:
This does not look like a complete error message. I am not sure where 1.114 came from.

Try replacing

Code:
\fill[even odd rule,pattern=north east lines,pattern color=black!30,decoration=random steps]
   (1,1.25) -- (1,-1.25) decorate { -- (-.75,-1.25) -- (-.75,1.25) -- cycle}
   (.75,0) circle (.25);

with

Code:
 \fill[pattern=north east lines]
   (1,1.25) -- (1,-1.25) -- (-.75,-1.25) -- (-.75,1.25) -- cycle
   (.75,0) circle (.25);

You can also try removing other lines.

Also, I am using PGF/TikZ 2.10. Your version can be generated using the command \pgfversion.
I fixed it typo. How can I make the circle and line at u=1 dashed?
 
dwsmith said:
I fixed it typo.
You copy-pasted the code instead of typing it, right?

dwsmith said:
How can I make the circle and line at u=1 dashed?
Use [thick,dashed] instead of just [thick] after \draw.
 
  • #10
I wish I could. At my apt, I can't since my roommate's don't like to pay bills so we have no more internet. I had to read this from my phone.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 0 ·
Replies
0
Views
6K