I need to reverse contour LevelList

2 ビュー (過去 30 日間)
Ömer Utku Örengül
Ömer Utku Örengül 2022 年 6 月 11 日
回答済み: Star Strider 2022 年 6 月 11 日
I had searched for it but couldn't fin an answer. My final was to conver a fortran code to matlab. I had done everything right, every result comes out right execpt one thing; in "Contour with properties:" LevelList is shown in correct order but in the plot it is reversed. Is there a way to fix it, and can i show it as a line nex to the plot instead of inside of the plot?
The contour properties is like this;
LineColor: [0 0 0]
LineStyle: '-'
LineWidth: 0.500000000000000
Fill: on
LevelList: [1 1.005000000000000 1.010000000000000 1.015000000000000 1.020000000000000 … ]
XData: [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 … ]
YData: [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 … ]
ZData: [151×33 double]
This is the plot i get
The result i suppouse to get is like this;
The other variables all correct.
  2 件のコメント
Star Strider
Star Strider 2022 年 6 月 11 日
That appears to me to be the desired result. Please explain the problem in more detail.
Ömer Utku Örengül
Ömer Utku Örengül 2022 年 6 月 11 日
編集済み: Ömer Utku Örengül 2022 年 6 月 11 日
Edit: Nevermind, apperently i can't read a simple graph. Can i show it just like the second figure, like a bar next to the figure though?

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

採用された回答

Star Strider
Star Strider 2022 年 6 月 11 日
Yes. Use the colorbar function.
If you want to remove the contour labels, use 'ShowText','off' as described in Contours with Labels.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by