i'm new. I use MikTEX 2.8 and Led editor.
Many thanks to all topics, i found them very usefull soooo many times.
Here it is the question:
After writing all i need in the preamble i type this code
Code: Select all
\begin{figure}[H]
\centering
%GRAPH OPTIONS
\pgfplotsset{
legend style = {font=,
at={(2.5cm,6.5cm)}},
grid = major,
axis x line = bottom,
axis y line = left,
width = 0.8\textwidth,
height = 0.8\textwidth,
xlabel = $x$,
ylabel = $y$}
%GRAPH
\begin{tikzpicture}
\begin{axis}
\addplot[blue] expression[domain=0:6] {2*x^2};
\addlegendentry{$i=2$}
\addplot[red] expression[domain=0:6] {2.5*x^2.5};
\addlegendentry{$i=2.5$}
\addplot[green] expression[domain=0:6] {3*x^3};
\addlegendentry{$i=3$}
\end{axis}
\end{tikzpicture}
\caption{Grafico della funzione $y=i\cdotp x^i$}
\end{figure}
How can i solve it?
Thanks in advance.