I'm using asymptote to make a heatmap. I have a array of values with two entries, these entries go from 0 to 50, but both represent physical quantities from 0 to 1.
I would like to have an x-axis and a y-axis which go all the way from 0 to 50 but with the label which goes from 0 to 1, does anyone know how to do this ?
I include my code so far :
import graph;
import palette;
import patterns;
file in=input("input.dat").line();
real[][] vals = in;
pen outside = lightgrey;
pen[] Palette = Gradient(100, white, blue);
xaxis("$x$",YZero,
xmin=-1,
RightTicks(Label("$%.2g$"),
new real[]{1,20,40,60}),
above=false);
yaxis("$y$",ymin = -1);
image(vals,Range(minValue,maxValue),(mx,my),(Mx,My),Palette);
Thanks for the help !
Slvn
RightTicks(Label("$%.2g$"), new real[] 0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1})
gives labels from 0 to 1.