I am trying to put three graphs side by side in two column format. The figures is shown below.
My LaTeX code is as following:
begin{figure*}
centering
%includegraphics[height=4.5in]{state3}
label{fig:graph1}
begin{tikzpicture}[yscale=0.7, xscale=0.7]
begin{axis}[
xmax=100,xmin=0,
ymin= 0,ymax=1,
xlabel=emph{User Requests},ylabel=emph{$E_{res}$ Percent},
xtick={0,10,20,...,100},
ytick={0,0.1,0.2,...,1},
legend style={legend pos=north east}
]
addplot coordinates{(0,1.0) (10,0.96) (20,0.90) (30,0.85) (40,0.81)
(50,0.74) (60,0.70) (70,0.64) (80,0.59) (90,0.53) (100,0.47)};
addplot coordinates{(0,1.0) (10,0.93) (20,0.85) (30,0.78) (40,0.71)
(50,0.65) (60,0.57) (70,0.50) (80,0.43) (90,0.36) (100,0.29)};
addplot coordinates{(0,1.0) (10,0.92) (20,0.82) (30,0.70) (40,0.62)
(50,0.53) (60,0.43) (70,0.35) (80,0.26) (90,0.18) (100,0.11)};
legend{emph{10 Nodes},emph{8 Nodes},emph{6 Nodes}}
end{axis}
end{tikzpicture}
%caption{$E_{res}$ vs Total User Requests for Requests Demanding 2-4
$vCPU$, 0-2 GB $Memory$}
%centering
%includegraphics[height=4.5in]{state3}
label{fig:graph2}
begin{tikzpicture}[yscale=0.7, xscale=0.7]
begin{axis}[
xmax=100,xmin=0,
ymin= 0,ymax=1,
xlabel=emph{User Requests},ylabel=emph{$E_{res}$ Percent},
xtick={0,10,20,...,100},
ytick={0,0.1,0.2,...,1},
legend style={legend pos=north east}
]
addplot coordinates{(0,1.0) (10,0.94) (20,0.88) (30,0.82) (40,0.75)
(50,0.68) (60,0.62) (70,0.55) (80,0.49) (90,0.42) (100,0.34)};
addplot coordinates{(0,1.0) (10,0.92) (20,0.83) (30,0.74) (40,0.67)
(50,0.58) (60,0.50) (70,0.43) (80,0.35) (90,0.27) (100,0.19)};
addplot coordinates{(0,1.0) (10,0.90) (20,0.81) (30,0.70) (40,0.60)
(50,0.51) (60,0.42) (70,0.32) (80,0.23) (90,0.11) (100,0.04)};
legend{emph{10 Nodes},emph{8 Nodes},emph{6 Nodes}}
end{axis}
end{tikzpicture}
%caption{$E_{res}$ vs Total User Requests for Requests Demanding 3-5
$vCPU$, 2-4 GB $Memory$}
%centering
%includegraphics[height=4.5in]{state3}
label{fig:graph3}
begin{tikzpicture}[yscale=0.7, xscale=0.7]
begin{axis}[
xmax=100,xmin=0,
ymin= 0,ymax=1,
xlabel=emph{User Requests},ylabel=emph{$E_{res}$ Percent},
xtick={0,10,20,...,100},
ytick={0,0.1,0.2,...,1},
legend style={legend pos=north east}
]
addplot coordinates{(0,1.0) (10,0.93) (20,0.86) (30,0.81) (40,0.77)
(50,0.69) (60,0.60) (70,0.53) (80,0.45) (90,0.38) (100,0.32)};
addplot coordinates{(0,1.0) (10,0.91) (20,0.84) (30,0.77) (40,0.70)
(50,0.63) (60,0.53) (70,0.44) (80,0.35) (90,0.26) (100,0.18)};
addplot coordinates{(0,1.0) (10,0.89) (20,0.80) (30,0.72) (40,0.63)
(50,0.53) (60,0.46) (70,0.37) (80,0.28) (90,0.18) (100,0.11)};
legend{emph{10 Nodes},emph{8 Nodes},emph{6 Nodes}}
end{axis}
end{tikzpicture}
%caption{$E_{res}$ Percent vs Total User Requests for Requests
Demanding 2-4 $vCPU$, 2-4 GB $Memory$}
end{figure*}
![enter image description here]()
My problem:
The graphs are not set in a single row.