How to change size of a scatter dots in plotyy ?
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I am trying to change the size of a scatter data set on a scond y-axis generated with plotyy. Im' able to do this on the first y axis, but not on the second one. Is there any way to do this?
Thanks, Ron
2 件のコメント
alice
2017 年 6 月 22 日
Do you use Matlab 2016 or 2017 ? If you do, have you considered using yyaxis? plotyy is not recommended. Here is a sample code using yyaxis:
% data to plot:
x = 1:10;
y1 = x.*x;
y2 = 1e4-100*y1;
% ploting the data
figure;
yyaxis left % we select the left axis
scatter(x, y1, y1);
hold on;
yyaxis right % we select the right axis
scatter(x, y2, 20);
Adam
2017 年 6 月 22 日
Please include some code with the question. The axes a scatter plot is on should have nothing to do with being able to change the properties of the scatter plot. The axes is just a parent for the scatter plot object.
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!