diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty b/Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty index 1f4f8113da6..25ad5cdd15c 100644 --- a/Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty +++ b/Master/texmf-dist/tex/latex/pgfplots/pgfplots.sty @@ -7,7 +7,7 @@ % % It is based on Till Tantau's PGF package. % -% Copyright 2007-2011 by Christian Feuersänger. +% Copyright 2007-2013 by Christian Feuersänger. % % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by @@ -48,6 +48,52 @@ \def\pgfplots@texdist@protect{\protect}% \input pgfplots.code.tex + + +% checks for xcolor configuration options and will override +% mesh/colorspace explicit color output +% and +% colormap default colorspace +% if needed. +\def\pgfplots@check@global@colorspace@overrides{% + % "bOverridesColorspace" + \pgfplots@loc@tmpfalse + \ifconvertcolorsD + \pgfplots@loc@tmptrue + \else + \ifconvertcolorsU + \pgfplots@loc@tmptrue + \fi + \fi + % + \ifpgfplots@loc@tmp + \let\pgfplots@loc@TMPb=\pgfutil@empty% + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@rgb \def\pgfplots@loc@TMPb{rgb}\fi + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@RGB \def\pgfplots@loc@TMPb{rgb}\fi + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@cmyk\def\pgfplots@loc@TMPb{cmyk}\fi + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@cmy \def\pgfplots@loc@TMPb{cmyk}\fi + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@gray \def\pgfplots@loc@TMPb{gray}\fi + \ifx\XC@tgt@mod\pgfplots@XC@tgt@mod@Gray \def\pgfplots@loc@TMPb{gray}\fi + % + \ifx\pgfplots@loc@TMPb\pgfutil@empty + \else + \edef\pgfplots@loc@TMPa{% + mesh/colorspace explicit color output=\pgfplots@loc@TMPb,% + colormap default colorspace=\pgfplots@loc@TMPb,% + }% + \pgfplots@log3{Overriding colorspace to \pgfplots@loc@TMPb\space due to xcolor configuration.}% + \expandafter\pgfplotsset\expandafter{\pgfplots@loc@TMPa}% + \fi + \fi +}% + +\def\pgfplots@XC@tgt@mod@rgb#1{rgb} +\def\pgfplots@XC@tgt@mod@RGB#1{rgb} +\def\pgfplots@XC@tgt@mod@cmyk#1{cmyk} +\def\pgfplots@XC@tgt@mod@cmy#1{cmy} +\def\pgfplots@XC@tgt@mod@gray#1{gray} +\def\pgfplots@XC@tgt@mod@Gray#1{gray} + \usetikzlibrary{plotmarks} |