How to change just the marker edge thickness and not the entire line thickness in plots?

49 次查看(过去 30 天)
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 个)

Daniel Bengtson
Daniel Bengtson 2023-9-7
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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by