How to change just the marker edge thickness and not the entire line thickness in plots?
35 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have cluttered data points. I want to change just the marker edge thickness in my plot. Using 'linewidth' property also changes the line's thickness. How to achieve this without changing the line's width?
1 comentario
Dyuman Joshi
el 7 de Sept. de 2023
Which function are you using to plot your data?
It would be better if you share the code (or a snippet of relevant code) you are working with.
Respuestas (1)
Daniel Bengtson
el 7 de Sept. de 2023
Plot the data without markers then add a scatterplot overlay of whatever marker size and width you want.
x = rand(1,10);
y = rand(1,10);
figure;
plot(x,y);
hold on
scatter(x,y,100,'linewidth',3);
grid on
1 comentario
Daniel Bengtson
el 8 de Sept. de 2023
x = rand(1,10);
y = rand(1,10);
figure;
a = plot(x,y);
hold on
b = scatter(x,y,100,'linewidth',3);
grid on
legend(a,'A');
Ver también
Categorías
Más información sobre 2-D and 3-D 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!

