Skip to content

Instantly share code, notes, and snippets.

@mkatsimpris
Created January 23, 2018 15:45
Show Gist options
  • Save mkatsimpris/037100d9ccbb1fa5acc9c02fa4cf9835 to your computer and use it in GitHub Desktop.
Save mkatsimpris/037100d9ccbb1fa5acc9c02fa4cf9835 to your computer and use it in GitHub Desktop.
\begin{figure}[H]
\centering
\begin{tikzpicture}
\begin{axis}[
width=15cm,
height=15cm,
title={Combinational area results},
xlabel={Clock Period[ns]},
ylabel={Area[NAND-2 GE]},
xmin=1, xmax=4,
ymin=0, ymax=16000,
xtick={1,1.5,2,3,4},
%% ytick={0,20,40,60,80,100,120},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]
\addplot[
color=blue,
mark=square,
mark size = 1.5
]
coordinates {
(1,3574)(1.5,3584)(2,3584)(3,3395)(4,3395)
};
\addplot[
color=red,
mark=square,
mark size = 1.5
]
coordinates {
(1,6759)(1.5,6768)(2,6757)(3,6456)(4,6452)
};
\addplot[
color=green,
mark=square,
mark size = 1.5
]
coordinates {
(1,13342)(1.5,12904)(2,12659)(3,12653)(4,12606)
};
\legend{64 IDs (8 Clusters\, 8 Cores),128 IDs (16 Clusters\, 8 Cores),256 IDs (32 Clusters\, 8 Cores)}
\end{axis}
\end{tikzpicture}
\end{figure}
\begin{tikzpicture}
\begin{axis}[
ybar,
%% enlargelimits=0.15,
width=14cm,
height=10cm,
title={Non-Combinational area results},
ylabel={Area[NAND-2 GE]},
symbolic x coords={c1,c2,c3},
xtick=data,
nodes near coords,
nodes near coords align={vertical},
legend pos=north west,
]
\addplot[ybar, fill=blue] coordinates {(c1,4575)};
\addplot[ybar, fill=red] coordinates {(c2,9151)};
\addplot[ybar,fill=green] coordinates {(c3,18303)};
\legend{64 IDs (8 Clusters\, 8 Cores),128 IDs (16 Clusters\, 8 Cores),256 IDs (32 Clusters\, 8 Cores)}
\end{axis}
\end{tikzpicture}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment