フィルターのクリア

How to maintain the same "xticks" and "yticks" for multiple plots?

10 ビュー (過去 30 日間)
Tintumon
Tintumon 2018 年 10 月 3 日
コメント済み: Tintumon 2018 年 10 月 5 日
%%the variable "accuracy" is a 1x60 array containing accuracy values.
figure('Position', get(0, 'Screensize'));
xticks(0:5:60);yticks(0:0.05:1);
findpeaks(accuracy);
The above code is for one data. There are multiple such data. So there are multiple plots.
But, for the above code, the "yticks" for the plot gets automatically adjusted according to the data.
How to modify the above code so that the "yticks" remains the same as defined for all the plots?

採用された回答

Adam
Adam 2018 年 10 月 3 日
doc linkaxes
or
doc linkprops
if you need more fine control, but linkaxes should work fine, using the 'y' argument if you don't also want the x axis to be the same.
  5 件のコメント
Adam
Adam 2018 年 10 月 4 日
It depends how your code is structured, but in theory just work out the range (or use ylim to get hold of it after plotting of that is what you want) and then pass it as an argument to the functions in which you plot all the rest of the data and when you plot then use
doc ylim
to set the y limit range to the values passed in each time you plot.
Tintumon
Tintumon 2018 年 10 月 5 日
Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by