multiple scatter plots with different sizes
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Omowunmi
el 18 de Sept. de 2014
Respondida: Omowunmi
el 18 de Sept. de 2014
Please how can want I do a scatter plot of data in A,B,C,D on the same graph where A and B have same sizes and C and D have same sizes but different from the sizes of A and B. Thanks.
0 comentarios
Respuesta aceptada
Joseph Cheng
el 18 de Sept. de 2014
Editada: Joseph Cheng
el 18 de Sept. de 2014
Use the hold functionality and plot them as you will do normally for a plot.
example:
x = linspace(0,3*pi,200);
rng(0,'twister');
y = cos(x)+ rand(1,200);
figure
scatter(x,y)
hold on
scatter(x,2*y,'r')
x(length(x)/2:end)=[];
y(length(y)/2:end)=[];
scatter(x,y/2,'g')
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!