diff options
author | Karl Berry <karl@freefriends.org> | 2014-10-19 21:47:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-10-19 21:47:10 +0000 |
commit | c07d0b959c7e9bbc2b3beeeab1ebf9ab11489255 (patch) | |
tree | ec3fe659eef8e37bc5bff6932e145f9f0c72fd11 /Master/texmf-dist/tex/latex | |
parent | 416f9a1ed6283aa2de2f1c4961c6d68f3d28f30f (diff) |
sparklines (19oct14)
git-svn-id: svn://tug.org/texlive/trunk@35400 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/sparklines/sparklines.sty | 12 |
1 files changed, 8 insertions, 4 deletions
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. |