How can I create multiple breaks on the x-axis?

6 ビュー (過去 30 日間)
Elin Jacobs
Elin Jacobs 2015 年 4 月 2 日
回答済み: Star Strider 2015 年 4 月 2 日
I am plotting a multi-year time series at a monthly time step. I only want to include the months April through October. To make it clear that this is what I'm plotting I want to add a break in the x axis every year where the months I'm excluding should have been. I have found code in the File Exchange that will work for one break, but not for multiple breaks. Any ideas how I can accomplish this?

回答 (1 件)

Star Strider
Star Strider 2015 年 4 月 2 日
I remember something like this but in another context. See if How do I display non-overlapping lines in one single MATLAB plot? works (with modifications) in your application.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by