summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/palette.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-12 23:15:42 +0000
committerKarl Berry <karl@freefriends.org>2015-05-12 23:15:42 +0000
commit3e889cecea02516b3f73d6574c3791a45e02c50a (patch)
tree03c51e54634cd5344e0a9f1e96d20a35ffc61c0d /Master/texmf-dist/asymptote/palette.asy
parent064ff9e4245f101ee0f01334f3dcba961ba37422 (diff)
asymptote 2.33
git-svn-id: svn://tug.org/texlive/trunk@37365 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/palette.asy')
-rw-r--r--Master/texmf-dist/asymptote/palette.asy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/asymptote/palette.asy b/Master/texmf-dist/asymptote/palette.asy
index 62ca83f1c9a..96bbf1550ec 100644
--- a/Master/texmf-dist/asymptote/palette.asy
+++ b/Master/texmf-dist/asymptote/palette.asy
@@ -118,11 +118,11 @@ bounds image(picture pic=currentpicture, real f(real, real),
real ymax=pic.scale.y.T(final.y);
real[][] data=new real[ny][nx];
for(int j=0; j < ny; ++j) {
- real y=pic.scale.y.Tinv(interp(ymin,ymax,(j+0.5)/nx));
+ real y=pic.scale.y.Tinv(interp(ymin,ymax,(j+0.5)/ny));
scalefcn Tinv=pic.scale.x.Tinv;
// Take center point of each bin
data[j]=sequence(new real(int i) {
- return f(Tinv(interp(xmin,xmax,(i+0.5)/ny)),y);
+ return f(Tinv(interp(xmin,xmax,(i+0.5)/nx)),y);
},nx);
}
return image(pic,data,range,initial,final,palette,transpose=false,