I am trying to draw this graph, one is linear another is exponential and proportional to the size of the data. The numbers are so different from each other, I don't know how to make it more understandable.
Is it possible to make this bar chart horizontal or a log line chart?
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{textcomp}
\usepackage{pgfplots}
\pgfplotsset{width=10cm,compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
x tick label style={
/pgf/number format/1000 sep=},
xlabel=AST nodes,
ylabel=Time in seconds,
enlargelimits=0.05,
legend style={at={(0.5,-0.1)},
anchor=north,legend columns=-1},
ybar interval=0.7
]
\addplot
coordinates {(3,0.009)(30,0.003)(111,0.005)(354,0.019)(1083,0.097)(3270,0.044)(9831,0.064)(29514,0.501)(88563,2.276)(265710,7.439)(797151,27.578)(2391474,128.611)};
\addplot
coordinates {(3,0.091)(30,0.495)(111,2.789)(354,3.390)(1083,5.021)(3270,20.149)(9831,48.015)(29514,158.442)(88563,857.381)(265710,2693.862)(797151,8771.571)};
\legend{Static scheduling,Demand Scheduling}
\end{axis}
\end{tikzpicture}
\end{document}
\begin{figure}[htbp]
\begin{center}
\scalebox{0.9}{
\begin{tblr}
{
colspec = {X[c,m]X[c,m]X[c,m]X[c,m]X[c,m]X[c,m]},
cell{1}{1} = {r=2}{},
cell{1}{2} = {r=2}{},
cell{1}{3,5} = {c=2}{},
cell{14}{5} = {c=2}{},
hlines,
vlines,
}
AST depth & Nodes & Visit sequence evaluation & & Demand evaluation & \\
& & ET in sec. & Memory in MB & ET in sec. & Memory in MB \\
1 & 3 & 0.009 & 2.971 & 0.091 & 7.741 \\
2 & 30 & 0.003 & 2.921 & 0.495 & 12.362 \\
3 & 111 & 0.005 & 3.646 & 2.789 & 21.288 \\
4 & 354 & 0.019 & 7.872 & 3.390 & 520.246 \\
5 & 1083 & 0.097 & 13.091 & 5.021 & 1016.131 \\
6 & 3270 & 0.044 & 46.332 & 20.149 & 1745.389 \\
7 & 9831 & 0.064 & 57.778 & 48.015 & 4564.360 \\
8 & 29514 & 0.501 & 155.338 & 158.442 & 7755.513 \\
9 & 88563 & 2.276 & 198.215 & 857.381 & 12081.491 \\
10 & 265710 & 7.439 & 940.484 & 2693.862 & 15053.265 \\
11 & 797151 & 27.578 & 1368.750 & 8771.571 & 15862.919 \\
12 & 2391474 & 128.611 & 3279.699 & \text{JVM crashed}& \\
\end{tblr}}
\end{center}
\caption{Benchmarks of running \href{https://github.com/boyland/aps/blob/master/examples/nested-cycles.aps}{\texttt{nested-cycles}} example}
\label{fig:nested-cycles-benchmark}
The exponential nature of the demand schedule becomes evident as number of the AST nodes gets larger.
\end{figure}






