Skip to main content
correct spelling errors,reload picture, that correction are visible
Source Link
Zarko
  • 317.5k
  • 25
  • 190
  • 399

You could use PGFPlots, which gives great, flexible graphs with relatively short code.

I couldn't really make sense of what you are doing here mathematically  (double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{1em}  \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp[\exp(exp\exp(-t))+exp+\exp(exp\exp(-t-2\pi)))*cos]cos(t)$, $(\frac{1}{2})(exp[\exp(exp\exp(-t))+exp+\exp(exp\exp(-t-2\pi)))*sin]sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Exampleenter image description here

You could use PGFPlots, which gives great, flexible graphs with relatively short code.

I couldn't really make sense of what you are doing here mathematically(double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*cos(t)$,$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Example

You could use PGFPlots, which gives great, flexible graphs with relatively short code.

I couldn't really make sense of what you are doing here mathematically  (double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{1em}  \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})[\exp(\exp(-t))+\exp(\exp(-t-2\pi))]cos(t)$, $(\frac{1}{2})[\exp(\exp(-t))+\exp(\exp(-t-2\pi))]sin(t)$} \end{axis} \end{tikzpicture} \end{document} 

enter image description here

added link to documentation
Source Link
Runar
  • 6.2k
  • 1
  • 19
  • 40

This usesYou could use pgfplotsPGFPlots, which gives great, flexible graphs with relatively short code.

I couldn't really make sense of what you are doing here mathematically(double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*cos(t)$,$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Example

This uses pgfplots.

I couldn't really make sense of what you are doing here mathematically(double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*cos(t)$,$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Example

You could use PGFPlots, which gives great, flexible graphs with relatively short code.

I couldn't really make sense of what you are doing here mathematically(double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*cos(t)$,$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Example

Source Link
Runar
  • 6.2k
  • 1
  • 19
  • 40

This uses pgfplots.

I couldn't really make sense of what you are doing here mathematically(double exp? must be above my mathematical apprehension), so this probably doesn't look right. You should be able to adjust this to your needs.

\documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usepackage{pgfplots} \pgfplotsset{width=12cm,compat=1.12} \begin{document} \begin{tikzpicture} \newcommand{\varT}{pi*x} \begin{axis}[ y label style={rotate=-90}, title=My title, ylabel = $y-axis$, xlabel = {t}, ] \addplot[ red, domain=0:2, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*cos(\varT)}; \addplot[ blue, domain=2:4, samples=17, ] {(1/2)*(exp(exp(-\varT))+exp(exp(-\varT-2*pi)))*sin(\varT)}; \legend{$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*cos(t)$,$(\frac{1}{2})(exp(exp(-t))+exp(exp(-t-2\pi)))*sin(t)$} \end{axis} \end{tikzpicture} %!tikz source end \end{document} 

Example