| 1 |
\documentclass[12pt]{article} |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
|
| 4 |
\usepackage[a4paper,nohead,nofoot]{geometry} |
| 5 |
\usepackage{bardiag} |
| 6 |
%\usepackage{showkeys} |
| 7 |
|
| 8 |
\usepackage{graphicx} |
| 9 |
|
| 10 |
\pagestyle{empty} |
| 11 |
|
| 12 |
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt} |
| 13 |
|
| 14 |
% New colors defined - I do it in bardiag.cfg |
| 15 |
% But you can just put it here, like: |
| 16 |
% \definecolor{brown}{rgb}{.65, .16, .16} |
| 17 |
% \definecolor{lightblue}{rgb}{.68, .85, .9} |
| 18 |
% \definecolor{palegreen}{rgb}{.6, .98, .6} |
| 19 |
% \definecolor{pink}{rgb}{1, .75, .8} |
| 20 |
% \definecolor{wheat}{rgb}{.96, .87, .7} |
| 21 |
% \definecolor{verylightgray}{gray}{0.95} |
| 22 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 23 |
|
| 24 |
\newcommand{\mycomment}[1]{} |
| 25 |
|
| 26 |
\begin{document} |
| 27 |
|
| 28 |
% This is a simple way to include a diagram |
| 29 |
|
| 30 |
\begin{center} |
| 31 |
\renewcommand{\betweenticks}{0.2} |
| 32 |
\bardiagrambegin{10}{1}{2cm}{1}{2}{1cm}{10cm} |
| 33 |
\drawlevellines |
| 34 |
\baritem{Jelger}{0.5}{green} |
| 35 |
\baritem{Johan}{0.7}{red} |
| 36 |
\baritem{Rikkert}{0.8}{yellow} |
| 37 |
\baritem{Henk}{0.3}{green} |
| 38 |
\baritem{Erwin}{0.5}{red} |
| 39 |
\bardiagramend{\large Name}{\large Fraction of Jobs Active} |
| 40 |
\end{center} |
| 41 |
|
| 42 |
%-------------------------------------------------- |
| 43 |
|
| 44 |
% This is a more accurate way to include a diagram |
| 45 |
|
| 46 |
\begin{figure}[t] |
| 47 |
\begin{minipage}[t]{\textwidth} |
| 48 |
\parbox[b]{\textwidth}{% |
| 49 |
\centering |
| 50 |
\centerline{% |
| 51 |
\input{src/1a.tex} |
| 52 |
} |
| 53 |
\centerline{ |
| 54 |
\input{src/1b.tex} |
| 55 |
} |
| 56 |
} |
| 57 |
\end{minipage} |
| 58 |
\caption{\label{fig:1}Bar Diagram} |
| 59 |
\end{figure} |
| 60 |
|
| 61 |
\newpage |
| 62 |
|
| 63 |
\begin{figure}[t] |
| 64 |
\begin{minipage}[t]{\textwidth} |
| 65 |
\parbox[b]{\textwidth}{% |
| 66 |
\centering |
| 67 |
\centerline{% |
| 68 |
\input{src/2a.tex} |
| 69 |
} |
| 70 |
\centerline{% |
| 71 |
\input{src/2b.tex} |
| 72 |
} |
| 73 |
} |
| 74 |
\end{minipage} |
| 75 |
\caption{\label{fig:2}Bar Diagram - real numbers} |
| 76 |
\end{figure} |
| 77 |
|
| 78 |
%\newpage |
| 79 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 80 |
|
| 81 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 82 |
|
| 83 |
%\newpage |
| 84 |
\def\onecol{red} |
| 85 |
\def\twocol{blue} |
| 86 |
|
| 87 |
\begin{figure}[!htbp] |
| 88 |
\begin{minipage}[t]{\textwidth} |
| 89 |
\parbox[b]{\textwidth}{% |
| 90 |
\centering |
| 91 |
% %\bgroup |
| 92 |
\centerline{% |
| 93 |
\input{src/3.tex} |
| 94 |
} |
| 95 |
% %\egroup |
| 96 |
} |
| 97 |
\end{minipage} |
| 98 |
\caption{\label{fig:3}One more Bar Diagram} |
| 99 |
\end{figure} |
| 100 |
|
| 101 |
|
| 102 |
\begin{figure}[!htbp] |
| 103 |
\begin{minipage}[t]{\textwidth} |
| 104 |
\parbox[b]{\textwidth}{% |
| 105 |
\centering |
| 106 |
% %\bgroup |
| 107 |
\centerline{% |
| 108 |
\renewcommand{\ActiveBarPrimitive}{\barTDRect} |
| 109 |
\input{src/4.tex} |
| 110 |
}$ $\\ |
| 111 |
Changing only \texttt{ActiveBarPrimitive} parameter from |
| 112 |
\texttt{barTDRect} to \texttt{barCylinder} yelds:\vspace{1cm} |
| 113 |
\centerline{% |
| 114 |
\renewcommand{\ActiveBarPrimitive}{\barCylinder} |
| 115 |
\input{src/4.tex} |
| 116 |
} |
| 117 |
% %\egroup |
| 118 |
} |
| 119 |
\end{minipage} |
| 120 |
\caption{\label{fig:4}Bar Diagram and 3D item-bars} |
| 121 |
\end{figure} |
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
\begin{figure}[!htbp] |
| 126 |
\begin{minipage}[t]{\textwidth} |
| 127 |
\parbox[b]{\textwidth}{% |
| 128 |
\centering |
| 129 |
\centerline{% |
| 130 |
\renewcommand{\ActiveBarPrimitive}{\barTDRect} |
| 131 |
\renewcommand{\frameTD}{1} |
| 132 |
\input{src/5.tex} |
| 133 |
} |
| 134 |
} |
| 135 |
\end{minipage} |
| 136 |
\caption{\label{fig:5}One more Bar Diagram in 3D} |
| 137 |
\end{figure} |
| 138 |
|
| 139 |
%\newpage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 140 |
|
| 141 |
|
| 142 |
\begin{figure}[!htbp] |
| 143 |
\begin{minipage}[t]{\textwidth} |
| 144 |
\parbox[b]{\textwidth}{% |
| 145 |
\centering |
| 146 |
% %\bgroup |
| 147 |
\centerline{% |
| 148 |
\renewcommand{\ActiveBarPrimitive}{\barTDRect} |
| 149 |
\renewcommand{\frameTD}{1} |
| 150 |
\input{src/6.tex} |
| 151 |
} |
| 152 |
% %\egroup |
| 153 |
} |
| 154 |
\end{minipage} |
| 155 |
\caption{\label{fig:6}One more Bar Diagram in 3D} |
| 156 |
\end{figure} |
| 157 |
|
| 158 |
|
| 159 |
\begin{figure}[!htbp] |
| 160 |
\begin{minipage}[t]{\textwidth} |
| 161 |
\parbox[b]{\textwidth}{% |
| 162 |
\centering |
| 163 |
\centerline{% |
| 164 |
\renewcommand{\ActiveBarPrimitive}{\barCylinder} |
| 165 |
\renewcommand{\frameTD}{1} |
| 166 |
\input{src/7.tex} |
| 167 |
} |
| 168 |
} |
| 169 |
\end{minipage} |
| 170 |
\caption{\label{fig:7}One more Bar Diagram in 3D (bar $\to$ cylinder)} |
| 171 |
\end{figure} |
| 172 |
|
| 173 |
\begin{figure}[!htbp] |
| 174 |
\begin{minipage}[t]{\textwidth} |
| 175 |
\parbox[b]{\textwidth}{% |
| 176 |
\centering |
| 177 |
% %\bgroup |
| 178 |
\centerline{% |
| 179 |
\renewcommand{\ActiveBarPrimitive}{\barTDRect} |
| 180 |
\renewcommand{\frameTD}{1} |
| 181 |
\input{src/8.tex} |
| 182 |
} |
| 183 |
% %\egroup |
| 184 |
} |
| 185 |
\end{minipage} |
| 186 |
\caption{\label{fig:8}Bar Diagram with ``top'' items} |
| 187 |
\end{figure} |
| 188 |
|
| 189 |
|
| 190 |
\end{document} |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|