Issue with xlabel positioning

7 ビュー (過去 30 日間)
Joseff Saunders
Joseff Saunders 2018 年 12 月 6 日
コメント済み: Joseff Saunders 2018 年 12 月 6 日
Hello all, I am trying to change the location of the xlabel. In the attached figure the labels appear at the start of the month, however I'd like to keep the ticks where they are but move the labels to the center. Hope this makes sense, any help would be much appreciatedFig.1.jpg
  2 件のコメント
dpb
dpb 2018 年 12 月 6 日
labels are associated with ticks so you have two choices:
  1. Add ticks at six-month intervals and label the mid-year ones with empty labels for the beginning of year locations, or
  2. Don't use tick labels at all but write the months text with text at the six-month x-axis locations.
ADDENDUM
Oh, there's a third that comes to mind -- add a second x-axis on top of the existing that has ticks at the mid-year position and use labels on it and clear the first.
Joseff Saunders
Joseff Saunders 2018 年 12 月 6 日
Good idea, I think I'll go with the third option! Cheers

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by