필터 지우기
필터 지우기

How to change size of a scatter dots in plotyy ?

조회 수: 5 (최근 30일)
Ron Nativ
Ron Nativ 2017년 6월 22일
답변: Ron Nativ 2017년 6월 22일
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
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
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개)

Ron Nativ
Ron Nativ 2017년 6월 22일
Thanks, i've used yyaxis and it worked well (just upgraded to Matlab 2017). Ron

카테고리

Help CenterFile Exchange에서 Two y-axis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by