Reversing axes in contourf plot

Is it possible to reverse the axes of a 'contourf' plot. In other words have the x axis grow from right to left?

回答(1 个)

Yes.
figure
contourf(YourMatrix)
set(gca, 'XDir','reverse')

类别

在 帮助中心 和 File Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by