MATLAB: How to flip the axis when plotting with IMAGESC MATLAB For example: load clownimagesc(X)colormap(map) Instead of the y-axis increasing from top to bottom, I would like to have it decreasing from top to bottom. Best Answer After displaying an image with the IMAGESC function, you can change the axis so it is decreasing from top to bottom. For example,load clownX = flipud(X);imagesc(X)colormap(map)axis('xy') Related SolutionsMATLAB: How to make the ticks in the colorbar appear at the center of each color in MATLAB 7.0 (R14) You can manually set the position of ticks on the colorbar axis by using the CAXIS function to set the color axis limits, and setting the 'YLim' and 'YTick' properties of the colorbar, as shown in the following example:A = ceil(5*rand(5,7));imagesc(A);numcolors = 5;colormap(jet(numcolors));caxis([1 numcolors]);cbarHandle = colorbar('YTick',...[1+0.5*(numcolors-1)/numcolors:(numcolors-1)/numcolors:numcolors],...'YTickLabel',int2str([1:numcolors]'), 'YLim', [1 numcolors]); MATLAB: How to flip an axis using imagesc Do you mean like with axis xy?[x, y] = meshgrid(1:16, 1:7)eta = uint8(rescale(sqrt(x.^2 + y.^2), 0, 255));T=[360, 660];p=[64, 250];subplot(2, 1, 1);imagesc(T,p,eta)axis('on', 'image');subplot(2, 1, 2);imagesc(T,p,eta)axis('on', 'image');axis xy Related QuestionHow to change color bar limits in imagescPlotting Image arrays with Imagesc flips them vertically.Imagesc hide one axisPlot contour lines on top of imagescHow to add a colormap manually as x-axis under an histogramColorbar TextHow to draw a L*a*b* colour space or HSV colour space (2D)
Best Answer