フィルターのクリア

How do I break axis to show data that have large variation?

3 ビュー (過去 30 日間)
Roja Eliza
Roja Eliza 2022 年 6 月 8 日
回答済み: Jan 2022 年 6 月 8 日
I have some data for which most the values of Y axis fall betwwen -6 to +6 and one data set upto 300. How can I break the plot to show the figure in a better way?
  1 件のコメント
dpb
dpb 2022 年 6 月 8 日
編集済み: dpb 2022 年 6 月 8 日
Unfortunately, MATLAB HG2 axes object doesn't have such a facility -- about your only choices without drawing a second axis are to use log scale on the y axis which probably isn't desirable in this case or scale the extreme value by (say) 10, then set the ticklabel value to the actual value. You could then draw a couple of angled lines across the y axis to indicate the break.
There are some "See Also" links to such functionality on FEX that show up here; you ought to check them out albeit it takes downloading and adding them; there isn't any supplied builtin support.

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

回答 (1 件)

Jan
Jan 2022 年 6 月 8 日
Search in the FileExchange for "break axis":

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by