Center out the last point on the Chart
2 ビュー (過去 30 日間)
古いコメントを表示
Hello! I wonder if you think it can be possible to plot a time series in such a way that the plot focuses on the last data point - it is shown in the vertical centre of the chart? example dataset:
1 0.540302306
2 -0.416146837
3 -0.989992497
4 -0.653643621
5 0.283662185
6 0.960170287
7 0.753902254
8 -0.145500034
9 -0.911130262
10 -0.839071529
11 0.004425698
12 0.843853959
13 0.004425698
14 0.843853959
15 0.004425698
16 0.843853959
Thanks! Dima
0 件のコメント
回答 (1 件)
Image Analyst
2012 年 3 月 18 日
Please make it so that that is regular MATLAB code that we can run easily by copying and pasting.
You can use xlim() to set the range of your x axis, for example to have 16 in the middle of the x axis of the chart:
xlim([1 31]);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Visual Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!