summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp3
-rw-r--r--Master/texmf-dist/tex/context/third/gnuplot/t-gnuplot.tex6
2 files changed, 6 insertions, 3 deletions
diff --git a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
index 36c791c9373..46c0137e6cb 100644
--- a/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
+++ b/Master/texmf-dist/metapost/context/third/gnuplot/mp-gnuplot.mp
@@ -669,6 +669,9 @@ boolean context_gnuplot ; context_gnuplot := true;
def gp_fill_pattern(expr p, pattern) =
save arg_pattern; arg_pattern = pattern mod gp_num_patterns;
+ if arg_is_transparent = false:
+ fill p withcolor gp_color_background;
+ fi;
if pattern = gp_pattern_name_full:
% fill the area
fill p withcolor gp_color_current;
diff --git a/Master/texmf-dist/tex/context/third/gnuplot/t-gnuplot.tex b/Master/texmf-dist/tex/context/third/gnuplot/t-gnuplot.tex
index 6d5e511dc99..adf4701c51e 100644
--- a/Master/texmf-dist/tex/context/third/gnuplot/t-gnuplot.tex
+++ b/Master/texmf-dist/tex/context/third/gnuplot/t-gnuplot.tex
@@ -262,7 +262,7 @@
\letgvalue{gps:n:#1}\GNUPLOTnumber
% in case of LuaTeX we need to write the buffer into file explicitely
\def\stopGNUPLOTscript{\egroup \ifx\savebuffer\undefined \else \savebuffer[gnuplot-\GNUPLOTnumber]\fi}%
- \dostartbuffer[gnuplot-\GNUPLOTnumber][startGNUPLOTscript][stopGNUPLOTscript]
+ \dostartbuffer[gnuplot-\GNUPLOTnumber][startGNUPLOTscript][stopGNUPLOTscript]%
}
% When are the graphics processed/read?
@@ -614,10 +614,10 @@
%D We need to preserve line breaks, otherwise metapost runs into troubles for longer input.
\def\startGNUPLOTpage
- {\obeyMPlines\dostartGNUPLOTpage}
+ {\begingroup\obeyMPlines\dostartGNUPLOTpage}
\long\def\dostartGNUPLOTpage#1\stopGNUPLOTpage
- {\startMPpage#1\stopMPpage}
+ {\endgroup\startMPpage#1\stopMPpage}
% TODO: currently, the following definitions are used,