Saying \limits
does not increase the size of the summation symbol, it just moves the limits.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\sum\limits_{i=1}^n$ \quad $\sum_{i=1}^n$ \quad
\end{document}
If you want to do the same with the \natural
symbol you need to use \mathop
.
$\natural_{i=1}^n$ \quad $\mathop\natural\limits_{i-1}^n$
If you actually want a larger \natural
you can create one with \large
, \Large
, etc.
\[ \mathop{\hbox{\Large$\natural$}}\limits_{i=1}^n \natural \]
You could also use \scalebox
from the graphicx package.
For printing the degree symbol in the tick labels, you can set xticklabel=$\pgfmathprintnumber{\tick}^\circ$
(\pgfmathprintnumber
makes sure that the numbers are rounded nicely, \tick
contains the label value, and \circ
is the symbol).
The horizontal black line is the y axis, which you can hide using the key hide y axis
.
Bonus hints: Instead of using empty legend entries, you can add forget plot
to the helper plots. That way they won't get a legend entry. In your case, you don't even need the helper plots: You can let all plots run from 0 to 360 degrees, and use abs(<expr>)
instead of just <expr>
to get the same results.
For line plots, you don't need to say color=red
, you can just say red
.
Options that are common to all plots can be set using every axis plot/.style={thick, samples=100, domain=0:360}
, which helps keep the code leaner and more maintainable.
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture} % p56
\begin{polaraxis} [
ytick=\empty,
hide y axis,
xticklabel=$\pgfmathprintnumber{\tick}^\circ$,
legend entries={
Omnidirectional,
Figure-8,
Subcardioid,
Cardioid,
Supercardioid,
Hypercardioid
},
legend cell align=left,
legend style={
at={(1.7,0.5)},
anchor=east
},
every axis plot/.style={
thick,
samples=100,
domain=0:360
}
]
%Ominidirectional
\addplot[black]{1};
%Figure 8 (Bidirectional)
\addplot[blue]{abs(cos(x))};
%subcardiod
\addplot[green]{0.7 + 0.3*cos(x)};
%cardiod
\addplot[brown]{0.5 + 0.5*cos(x)};
%Supercardioid
\addplot[red]{abs(0.37 + 0.63*cos(x))};
%Hypercardioid
\addplot[violet]{abs(0.25 + 0.75*cos(x))};
\end{polaraxis}
\end{tikzpicture}
\end{document}
Best Answer
If you can find the appropriate black symbol, then it can be colored easily:
If the symbol is a math symbol, then the color should be set via:
Curly braces and
\textcolor
would change the meaning of the math atom, which can affect the horizontal spacing.The symbol in the example above seems to have the same height and width. That means, the length of the slanted edge is sqrt(a2 + (a/2)2) with a as height or width of the triangle. Then the horizontal scaling factor (a = 1) is sqrt(5)/2 ≈ 1.118034:
Also the symbol could be easily created by
tikz
or similar packages. However it is not possible in TeX to get the exact information about the shape of a glyph, thus the dimensions must be measured, estimated or guessed.