pcolor plot: how to scale the smoothing differently in x and y directions
I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily?I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily? I have data of say this type (this is a simplified example):
A = [0 0 0 0 0 0
0 0 2 0 0 0
0 0 9 0 0 0
0 0 1 1 0 0
0 0 0 8 0 0
0 0 0 1 0 0
0 0 0 0 0 0];
If I do:
figure; pcolor(A); shading interp
then I get two distinct "peaks":
Now the thing is that I know from the property of the data (two-dimensional gas chromatography) that it is actually the same peak, it is normal that in each column the peak is moving by some pixels downward (in my simplified example here it is moving by two pixels, in the actual data it is even more). I would like to tell pcolor that distance in the x and y direction does not count the same (a sort of weighting maybe?), so that pcolor instead understands that these are one and the same "peak" and plot that as a single "peak". (This must also be directional: if the peak "goes down" in the next column (by approximately the right extent), then it should be considered the same peak. Essentially, instead of considering x and y distances, I want somehow to consider the distance at an angle)… Is there an option to do that easily? pcolor x-y distortion MATLAB Answers — New Questions









