Tikz latex question (Evgeny.Makarov)

  • LaTeX
  • Thread starter Dustinsfl
  • Start date
  • Tags
    Latex
In summary: 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. :(In summary, the conversation discusses creating a graph on the complex plane with a shaded area and a circle and line that are dashed. It involves using the code \usepackage{tikz} and \pgfversion to generate the desired graph. There is also mention of options such as [thick] and [dashed] to modify the appearance of the graph.
  • #1
Dustinsfl
2,281
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
  • #2
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$
 
  • #3
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
 
  • #4
I am getting an error on the line \begin{tikzpicture}[scale=2.5,>stealth']
 
  • #5
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?
 
  • #6
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
 
  • #7
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.
 
  • #8
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?
 
  • #9
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.
 

FAQ: Tikz latex question (Evgeny.Makarov)

What is Tikz latex question (Evgeny.Makarov)?

Tikz latex question (Evgeny.Makarov) refers to a specific question or problem related to using the Tikz package in LaTeX, posted by a user named Evgeny.Makarov on a platform such as Stack Exchange or forums for the LaTeX community.

What is Tikz and how is it related to LaTeX?

Tikz is a powerful package for creating high-quality graphics in LaTeX. It allows users to create diagrams, charts, and other visual elements directly in their LaTeX documents, using a syntax that is similar to drawing in other software programs. Tikz is popular among scientists, engineers, and other professionals who need to include technical illustrations in their documents.

What is the purpose of using Tikz in LaTeX?

The main purpose of using Tikz in LaTeX is to create high-quality, customizable graphics that are seamlessly integrated into the document. It allows users to have complete control over the design and layout of their figures, while also ensuring that the graphics are consistent with the rest of the document in terms of fonts, colors, and style.

Are there any limitations to using Tikz in LaTeX?

While Tikz is a powerful tool, it does have some limitations. One is that it can be quite complex and may have a steep learning curve for beginners. Another limitation is that it may not be suitable for creating very large or complex graphics, as this can significantly slow down the compilation process of the document. Additionally, Tikz may not be the best choice for creating highly detailed or realistic images.

Where can I find resources to learn more about Tikz and its capabilities?

There are many online resources available for learning about Tikz and its capabilities. These include tutorials, documentation, forums, and blogs dedicated to LaTeX and Tikz. Additionally, there are books and courses that specifically focus on Tikz and its use in LaTeX. Experimenting with the package and exploring its possibilities is also a great way to learn more and improve your skills.

Similar threads

Replies
19
Views
2K
Replies
1
Views
2K
Replies
11
Views
6K
Replies
3
Views
1K
Replies
2
Views
791
Replies
4
Views
2K
Replies
7
Views
2K
Replies
1
Views
5K
Back
Top