I would like to draw a curve in latex LaTeX with my own datahow . How please I can do that.? this This is my table that contains the data….
EDIT
this is 2 new files
%test.dat
Num Min Moy Max
R1 100 100 100
R2 100 100 100
R3 250 250 250
R4 250 250 250
R5 500 500 500
R6 500 500 500
R7 750 750 750
R8 750 750 750
R9 1000 1000 1000
R10 1000 1000 1000
and this is his code
\begin{figure}[!h]
\centering
\begin{tikzpicture}[scale=1]
\begin{axis}[%
% Lengend position
legend pos = outer north east,
% We need a tick for every data
xtick = data,
% The ticks label are provided in the file as the column named Num
xticklabels from table = {test2.dat}{Num}]
% How the data are separated.
% \pgfplotstableset{col sep = tab}
% We need to simulate an x coord since it is litteral in the data file. I choose to index on the line.
\addplot table [x expr = \lineno, y = Min] {test.dat};
\addlegendentry{Min}
\addplot table [x expr = \lineno, y = Moy] {test.dat};
\addlegendentry{Moy}
\addplot table [x expr = \lineno, y = Max] {test.dat};
\addlegendentry{Max}
\end{axis}
\end{tikzpicture}
\caption{Pub Partagée avec des pages dont la politique est Tout le Monde et ayant un Nb Min, Moy Max d'amis}
\end{figure}
Best Answer
For simplicity, I provide the data as a file, values are separated by tabs and I added a title to the samples.
The source code.