summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sparklines/sparklines.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/sparklines/sparklines.sty')
-rw-r--r--Master/texmf-dist/tex/latex/sparklines/sparklines.sty10
1 files changed, 7 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/sparklines/sparklines.sty b/Master/texmf-dist/tex/latex/sparklines/sparklines.sty
index 33eff2183a1..1b1e686b26b 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.4
+%%% sparklines.sty Version 1.5
%%%
%%% What Are Sparklines?
%%% Sparklines are intense, simple, wordlike graphics (so named by Edward Tufte).
@@ -16,6 +16,8 @@
%%% al@wacc.de
%%%
%%% MODIFICATION HISTORY:
+%%% Nov 21, 2009
+%%% version 1.5: Benno Puetz (puetz@mpipsykl.mpg.de) made change of colors possible.
%%% Apr 20, 2009
%%% version 1.4: Alexander Kowalski (Alexander.Kowarik@statistik.gv.at) found an error concerning spark-rectangles
%%% Mar 21, 2007
@@ -29,14 +31,15 @@
%%% version 1.0: first version of sparklines
\ProvidesPackage{sparklines}
- [2007/04/20 v1.4 Sparklines (see more on sparklines at www.EdwardTufte.com)]
- \typeout {Package: `sparklines' 1.4 \space 2007/04/20}
+ [2007/11/21 v1.5 Sparklines (see more about sparklines at www.EdwardTufte.com)]
+ \typeout {Package: `sparklines' 1.5bp \space 2009/11/21}
\RequirePackage{pgf}
% We define the colors of two features: the background rectangle and
% the spikes in a bar graph
\definecolor{sparkrectanglecolor}{gray}{0.9}
\definecolor{sparkspikecolor}{named}{black}
+\definecolor{sparklinecolor}{named}{black}
% We define parameters for changing the sizes. These are
% \sparklinethickness -- thickness of the line drawn by \spark,
@@ -83,6 +86,7 @@
\pgfmoveto{\pgfxy(#1,#2)} %
\@SPARK}
\def\@SPARK#1 #2 {%
+ \pgfsetstrokecolor{sparklinecolor}%
\pgflineto{\pgfxy(#1,#2)} %
\@ifnextchar/{\pgfstroke\ignorespaces}{\@SPARK}}