summaryrefslogtreecommitdiff
path: root/metapost/context/base/mpiv/mp-grap.mpiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-03-15 16:04:31 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2018-03-15 16:04:31 +0100
commita4e07f30e880ab27c2918f81f136e257475b7729 (patch)
tree02db002d3001a49777a049f9a98fdc872a5e1ad1 /metapost/context/base/mpiv/mp-grap.mpiv
parentcbc37c39432e0ebe38e0922fc6d14c2955ab3ba2 (diff)
downloadcontext-a4e07f30e880ab27c2918f81f136e257475b7729.tar.gz
2018-03-15 15:36:00
Diffstat (limited to 'metapost/context/base/mpiv/mp-grap.mpiv')
-rw-r--r--metapost/context/base/mpiv/mp-grap.mpiv5
1 files changed, 3 insertions, 2 deletions
diff --git a/metapost/context/base/mpiv/mp-grap.mpiv b/metapost/context/base/mpiv/mp-grap.mpiv
index 3a1d7742a..e799f629c 100644
--- a/metapost/context/base/mpiv/mp-grap.mpiv
+++ b/metapost/context/base/mpiv/mp-grap.mpiv
@@ -199,7 +199,8 @@ def begingraph(expr w, h) =
graph_number_of_arrowheads = 0 ;
if known graph_background : % new feature!
- fill origin--(w,0)--(w,h)--(0,h)--cycle withcolor graph_background ;
+ addto graph_finished_graph contour
+ origin--(w,0)--(w,h)--(0,h)--cycle withcolor graph_background ;
fi
enddef ;
@@ -863,7 +864,7 @@ vardef graph_gridline_picture@#(suffix $)(expr c, f, u)(text w) =
if c : graph_xyscale fi
shifted (((.5 + mfun_laboff@# dotprod (.5,.5)) * mfun_laboff@#) graph_xyscale) ;
image(draw p w ;
- label@#(if string f : format(f,u) else : f fi, point 0 of p))
+ label@#(if string f : format(f,u) else : f fi, point 0 of p) w)
fi
enddef ;