From c07d0b959c7e9bbc2b3beeeab1ebf9ab11489255 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 19 Oct 2014 21:47:10 +0000 Subject: sparklines (19oct14) git-svn-id: svn://tug.org/texlive/trunk@35400 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/sparklines/sparklines.pdf | Bin 71033 -> 35574 bytes .../texmf-dist/doc/latex/sparklines/sparklines.tex | 30 +++++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/doc/latex/sparklines') diff --git a/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf index 1216b19649a..487d09fdb00 100644 Binary files a/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf and b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf differ 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. -- cgit v1.2.3