Plotyy scatter adapt dotes
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Azzi Abdelmalek
2015-8-30
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')
更多回答(0 个)
另请参阅
类别
在 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!