Scale the axis in a contourf plot/ change axis location

I have a contour plot with positive value for x axis and negative value for y axis, both start from the 0. I want my x axis to be on top, just to make sure scaling make sense. Appreciate any help.

回答 (1 件)

M
M 2018 年 1 月 19 日

0 投票

Maybe something like this :
contour(...);
ax=gca;
ax.XAxisLocation='top';

1 件のコメント

Nahid Taheri
Nahid Taheri 2018 年 1 月 19 日
I tried that, but it did not work. Also, do you know how we can select the color on the color bar?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

質問済み:

2018 年 1 月 19 日

コメント済み:

2018 年 1 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by