diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/sparklines/sparklines.pdf | bin | 71033 -> 35574 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/sparklines/sparklines.tex | 30 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/sparklines/sparklines.sty | 12 |
3 files changed, 36 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf Binary files differindex 1216b19649a..487d09fdb00 100644 --- a/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf +++ b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf diff --git a/Master/texmf-dist/doc/latex/sparklines/sparklines.tex b/Master/texmf-dist/doc/latex/sparklines/sparklines.tex index 2bc3eae5a2b..a489d7d7e22 100644 --- a/Master/texmf-dist/doc/latex/sparklines/sparklines.tex +++ b/Master/texmf-dist/doc/latex/sparklines/sparklines.tex @@ -15,7 +15,7 @@ \title{Sparklines} \author{Andreas Loeffler \and Dan Luecking} -\date{updated 21.~November 2009 (version 1.5)}\maketitle +\date{updated 19.~October 2014 (version 1.6)}\maketitle \section{What are sparklines?} @@ -157,10 +157,36 @@ user may change (with \verb$\setlength$). The default is \texttt{2pt}. \end{verbatim} before the sparkline environment (see a manual about defining colors in \LaTeX{} if you do not understand the definition of \emph{named} etc.). - +\paragraph{Bottom line} This adds a bottom line (the x-axis) which can be useful to visually separate different bar charts that are next to each other: +\begin{sparkline}{5} +\definecolor{sparkbottomlinecolor}{gray}{0.9} +\sparkspike .15 .55 +\sparkspike .317 1 +\sparkspike .483 .62 +\sparkspike .65 .42 +\sparkspike .817 .5 +\sparkbottomline 0.9 +\end{sparkline}. +The code used was +\begin{verbatim} + \begin{sparkline}{5} + \definecolor{sparkbottomlinecolor}{gray}{0.9} + \sparkspike .15 .55 + \sparkspike .317 1 + \sparkspike .483 .62 + \sparkspike .65 .42 + \sparkspike .817 .5 + \sparkbottomline 0.9 + \end{sparkline}. +\end{verbatim} +Changing the color of the bottom line is quite easy using the command \section*{Version history} \begin{description} + \item[] Oct 19, 2014 + + version 1.6: Emiel van Miltenburg (emiel.van.miltenburg@vu.nl) - Adding a bottom line (the x-axis, this is useful to visually separate different bar charts that are next to each other) and changing the color of the bottom line. + \item[] Nov 21, 2009 version 1.5: Benno Puetz (puetz@mpipsykl.mpg.de) made change of colors possible. diff --git a/Master/texmf-dist/tex/latex/sparklines/sparklines.sty b/Master/texmf-dist/tex/latex/sparklines/sparklines.sty index 1b1e686b26b..2eb864cfd16 100644 --- a/Master/texmf-dist/tex/latex/sparklines/sparklines.sty +++ b/Master/texmf-dist/tex/latex/sparklines/sparklines.sty @@ -1,4 +1,4 @@ -%%% sparklines.sty Version 1.5 +%%% sparklines.sty Version 1.6 %%% %%% What Are Sparklines? %%% Sparklines are intense, simple, wordlike graphics (so named by Edward Tufte). @@ -16,6 +16,8 @@ %%% al@wacc.de %%% %%% MODIFICATION HISTORY: +%%% Oct 19, 2014 +%%% version 1.6: Emiel van Miltenburg (emiel.van.miltenburg@vu.nl) - Adding a bottom line (the x-axis, this is useful to visually separate different bar charts that are next to each other) and changing the color of the bottom line. %%% Nov 21, 2009 %%% version 1.5: Benno Puetz (puetz@mpipsykl.mpg.de) made change of colors possible. %%% Apr 20, 2009 @@ -31,8 +33,8 @@ %%% version 1.0: first version of sparklines \ProvidesPackage{sparklines} - [2007/11/21 v1.5 Sparklines (see more about sparklines at www.EdwardTufte.com)] - \typeout {Package: `sparklines' 1.5bp \space 2009/11/21} + [2014/10/19 v1.6 Sparklines (see more about sparklines at www.EdwardTufte.com)] + \typeout {Package: `sparklines' 1.6bp \space 2014/10/19} \RequirePackage{pgf} % We define the colors of two features: the background rectangle and @@ -40,7 +42,7 @@ \definecolor{sparkrectanglecolor}{gray}{0.9} \definecolor{sparkspikecolor}{named}{black} \definecolor{sparklinecolor}{named}{black} - +\definecolor{sparkbottomlinecolor}{named}{black} % We define parameters for changing the sizes. These are % \sparklinethickness -- thickness of the line drawn by \spark, % \sparkdotwidth -- diameter of the dot drawn by \sparkdot, @@ -79,6 +81,8 @@ {\pgfmoveto{\pgforigin}\color{sparkrectanglecolor}% \pgfrect[fill]{\pgfxy(0, #1)}{\pgfxy(1, #2-#1)}}}% +% defines sparkbottomline +\newcommand{\sparkbottomline}[1][1]{\color{sparkbottomlinecolor}\pgfline{\pgfxy(0,0)}{\pgfxy(#1,0)}\color{sparklinecolor}} % defines sparkline-plot % Replace \@shouldIstop hack with equivalent \@ifnextchar code. |