Skip to content

Commit

Permalink
Added dashed line for black and white printing
Browse files Browse the repository at this point in the history
  • Loading branch information
patmorin committed Jul 9, 2013
1 parent 1d3d35b commit f73cb27
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 18 deletions.
7 changes: 5 additions & 2 deletions latex/images/Makefile
Expand Up @@ -3,9 +3,12 @@ pdfs=$(svgs:.svg=.pdf)
epss=$(svgs:.svg=.eps)


all: $(pdfs) $(epss) bigoh.tex
all: $(pdfs) $(epss) bigoh-1.tex bigoh-2.tex

bigoh.tex : bigoh.gp
bigoh-1.tex : bigoh-1.gp
gnuplot $<

bigoh-2.tex : bigoh-2.gp
gnuplot $<

%.pdf : %.svg
Expand Down
11 changes: 11 additions & 0 deletions latex/images/bigoh-1.gp
@@ -0,0 +1,11 @@
set term tikz color size 5in,3in
set output 'bigoh-1.tex'
set xlabel '{\color{var}\texttt{n}}'
set ylabel '$f({\color{var}\mathtt{n}})$'
set key right bottom
set xrange [1:100]
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
set style line 2 linecolor rgb '#dd181f' linetype 2 linewidth 2
plot 15*x title '$15{\mathtt{n}}$' with lines linestyle 1, \
2*x*(log(x)/log(2)) title '$2{\mathtt{n}}\log{\mathtt{n}}$' with lines linestyle 2

11 changes: 11 additions & 0 deletions latex/images/bigoh-2.gp
@@ -0,0 +1,11 @@
set term tikz color size 5in,3in
set output 'bigoh-2.tex'
set xlabel '{\color{var}\texttt{n}}'
set ylabel '$f({\color{var}\mathtt{n}})$'
set key right bottom
set style line 1 linecolor rgb '#0060ad' linetype 1 linewidth 2
set style line 2 linecolor rgb '#dd181f' linetype 2 linewidth 2
set xrange [1:10000]
plot 15*x title '$15{\mathtt{n}}$' with lines linestyle 1, \
2*x*(log(x)/log(2)) title '$2{\mathtt{n}}\log{\mathtt{n}}$' with lines linestyle 2

14 changes: 0 additions & 14 deletions latex/images/bigoh.gp

This file was deleted.

5 changes: 4 additions & 1 deletion latex/intro.tex
Expand Up @@ -642,7 +642,10 @@ \subsection{Asymptotic Notation}

\begin{figure}
\begin{center}
\input{images/bigoh.tex}
\newlength{\tmpa}\setlength{\tmpa}{.98\linewidth}
\addtolength{\tmpa}{-4mm}
\resizebox{\tmpa}{!}{\input{images/bigoh-1.tex}}\\[4ex]
\resizebox{.98\linewidth}{!}{\input{images/bigoh-2.tex}}
\end{center}
\caption{Plots of $15#n#$ versus $2#n#\log#n#$.}
\figlabel{intro-asymptotics}
Expand Down
2 changes: 1 addition & 1 deletion latex/ods-colors.sty
Expand Up @@ -13,6 +13,6 @@
%\definecolor{comment}{named}{Gray}
%\definecolor{linkblue}{named}{Black}
%\definecolor{fm}{named}{Black}

%


0 comments on commit f73cb27

Please sign in to comment.