Hi
I'm using the following code to generate a scatter plot with two axis.
plotyy(x,y1,x,y2,'scatter')
At the moment all points (the one of y1 and also Y2) have the same color and are the same type. How can I change seperatly the type and the color of the dotes?
Thanks for your help.

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 8월 30일

4 개 추천

x=0:0.1:1;
y1=sin(x);
y2=cos(x);
[ax,h1,h2]=plotyy(x,y1,x,y2,'scatter')
set(h1,'markerfacecolor','r')
set(h2,'markerfacecolor','g')

댓글 수: 3

Joas Landis
Joas Landis 2015년 8월 30일
Thanks a lot. is there any possibility to remove the blue border from the dotes?
set(h1,'MarkerEdgeColor','none')
set(h2,'MarkerEdgeColor','none')
Joas Landis
Joas Landis 2015년 8월 31일
Thanks again. Is there somewhere list where I can found all the properties that can be set. Or how can i change the type of the dots?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Two y-axis에 대해 자세히 알아보기

질문:

2015년 8월 30일

댓글:

2015년 8월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by