Plotyy scatter adapt dotes

3 views (last 30 days)
Joas Landis
Joas Landis on 30 Aug 2015
Commented: Joas Landis on 31 Aug 2015
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 30 Aug 2015
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 Comments
Azzi Abdelmalek
Azzi Abdelmalek on 30 Aug 2015
set(h1,'MarkerEdgeColor','none')
set(h2,'MarkerEdgeColor','none')
Joas Landis
Joas Landis on 31 Aug 2015
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?

Sign in to comment.

More Answers (0)

Categories

Find more on Two y-axis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!