summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/palette.asy
diff options
context:
space:
mode:
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,