Change Xaxis values based on Xtick
古いコメントを表示
Hi,
I have the following data plotted from Matlab. I am setting the Xtick and XtickLabels on my own but there is an uneven spacing between the data points. I was wondering if there is a way to make it such that the gap between the data points is not so large/small and is evenly spaced. I have attached a picture with an example.
UniqueFreq =
2012 2015 2018 2020 2023 1882 1885 1900 1915 1918
set(gca,'xtick',unique(UniqueFreq));
hold on
set(gca,'xticklabel',unique(UniqueFreq))
hold on
plot(DataArray{k,8},DataArray{k,9},'-o');
1 件のコメント
the cyclist
2017 年 1 月 18 日
I don't see an attached picture.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Annotations についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!