
Like my username says, I'm new using LaTeX and, of course, I'm new at this forum. This is my first post, and I would to ask you some help, because I really need it...

Before nothing, I wish that you apologize me if my english is not good...

Well, I'm trying to represent some parameters of an antenna in a radiation pattern. In this way, at first I've modified a example of radiation pattern made in LaTeX that I've found on the Internet. If I compile this, I get this radiation pattern, but the problem is that it appears moved to the right of the document, and I'm not able to center it. Here I post the code that I used to obtain the radiation pattern:
Code: Select all
\documentclass[11pt,a4paper,spanish]{article}
\usepackage{babel}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage[dvips,final]{epsfig}
\usepackage{gnuplottex}
\usepackage{diagmac}
%\usepackage[miktex]{gnuplottex}
%\usepackage{gnuplot-lua-tikz}
\usepackage{tikz}
\usetikzlibrary{through}
\usepackage{verbatim}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=4.5]
\coordinate (a) at (1.5,0);
\coordinate (c) at (0,0);
\node [draw,line width=1pt,circle through=(a),
label=left:$180^\circ$,
label=right:$0^\circ$,
%label=15:$15^\circ$,
label=30:$30^\circ$,
%label=45:$45^\circ$,
label=60:$60^\circ$,
%label=75:$75^\circ$,
label=90:$90^\circ$,
%label=105:$105^\circ$,
label=120:$120^\circ$,
%label=135:$135^\circ$,
label=150:$150^\circ$,
%label=165:$165^\circ$,
label=180:$180^\circ$,
label=210:$210^\circ$,
label=240:$240^\circ$,
label=270:$270^\circ$,
label=300:$300^\circ$,
label=330:$330^\circ$] at (c) {};
\draw[line width=1pt,dashed] (0,0) circle (1.5/2);
\draw[line width=1pt,dashed] (0,0) circle (1.5/4);
\draw[line width=1pt,dashed] (0,0) circle (1.5*3/4);
\draw[line width=1pt,dashed] (0,0) -- (10:1.5);
\draw[line width=1pt,dashed] (0,0) -- (20:1.5);
\draw[line width=1pt,dashed] (0,0) -- (30:1.5);
\draw[line width=1pt,dashed] (0,0) -- (40:1.5);
\draw[line width=1pt,dashed] (0,0) -- (50:1.5);
\draw[line width=1pt,dashed] (0,0) -- (60:1.5);
\draw[line width=1pt,dashed] (0,0) -- (70:1.5);
\draw[line width=1pt,dashed] (0,0) -- (80:1.5);
\draw[line width=1pt,dashed] (0,0) -- (100:1.5);
\draw[line width=1pt,dashed] (0,0) -- (110:1.5);
\draw[line width=1pt,dashed] (0,0) -- (120:1.5);
\draw[line width=1pt,dashed] (0,0) -- (130:1.5);
\draw[line width=1pt,dashed] (0,0) -- (140:1.5);
\draw[line width=1pt,dashed] (0,0) -- (150:1.5);
\draw[line width=1pt,dashed] (0,0) -- (160:1.5);
\draw[line width=1pt,dashed] (0,0) -- (170:1.5);
\draw[line width=1pt,dashed] (0,0) -- (190:1.5);
\draw[line width=1pt,dashed] (0,0) -- (200:1.5);
\draw[line width=1pt,dashed] (0,0) -- (210:1.5);
\draw[line width=1pt,dashed] (0,0) -- (220:1.5);
\draw[line width=1pt,dashed] (0,0) -- (230:1.5);
\draw[line width=1pt,dashed] (0,0) -- (240:1.5);
\draw[line width=1pt,dashed] (0,0) -- (250:1.5);
\draw[line width=1pt,dashed] (0,0) -- (260:1.5);
\draw[line width=1pt,dashed] (0,0) -- (280:1.5);
\draw[line width=1pt,dashed] (0,0) -- (290:1.5);
\draw[line width=1pt,dashed] (0,0) -- (300:1.5);
\draw[line width=1pt,dashed] (0,0) -- (310:1.5);
\draw[line width=1pt,dashed] (0,0) -- (320:1.5);
\draw[line width=1pt,dashed] (0,0) -- (330:1.5);
\draw[line width=1pt,dashed] (0,0) -- (340:1.5);
\draw[line width=1pt,dashed] (0,0) -- (350:1.5);
\draw[line width=1pt] (180:1.5) -- (0:1.5);
\draw[line width=1pt] (270:1.5) -- (90:1.5);
\end{tikzpicture}
\end{center}
\end{document}
My objective is represent in the radiation pattern some parameters of an antenna. To do this, I must define some variables, which will be used inside other variables, but I have problems with that. I've tried to define a variable with the structure
\def
, but LaTeX gave me some errors... I've seen that \newcommand{\nameofvariable}{\information}
could be useful. For example, if I have a variable that I call "N", how could I define it? Maybe in this way? \newcommnad{\N}{}
And what is the information that I must to include in the second group of brackets? (Suppose that "N" is a numeric variable, that sometimes is defined like 2, or like 3, for example). This second group of brackets could not be taking into account?
Finally, I want to represent some parameter of the antenna in the radiation pattern above. This parameter is an equation, because uses the variables that I defined previously. For example, the parameter could be:
Parameter = (A/B)
How can I define this parameter, using again the
\newcommand
estructure? And how can I plot this on LaTeX? I've seen that the following structure is usually used:\draw[colour...] plot[style] Parameter
Is this correct? How can I indicate that I want to represent this in the defined radiation pattern?
I'm sorry about the enormous size of the post! I expect for your help.

Regards.