I am trying to plot something with a manually added colormap, using something like the code below (this is just a minimal example showing my problem): I create some kind of matrix that has values between two known values, plot it with pcolor, and insert a colorbar.
colmap = load('colorbartest_colormap.txt');
imagematrix = transpose(sqrt(linspace(Tmin,Tmax,10)))*sqrt(linspace(Tmin,Tmax,10));
This plots nicely with the standard colormap (jet), as shown in the screenshot:
however, if I try to use my own colormap with
I end up with the following:
and actually, even though I just use
I still get the problem, as:
Can anyone help me with what happens here? :(
I am using MATLAB vs. R2011a on Windows 7 64bit, if that has any importance.