Furqan Zia
Furqan Zia

Reputation: 1

How to distinguish multiple overlapping lines on MATLAB graphs?

How can I distinguish multiple overlapping lines on MATLAB graphs like this?

image

Upvotes: 0

Views: 267

Answers (1)

Kenneth Boyd
Kenneth Boyd

Reputation: 667

I would suggest different combinations of line widths, marker sizes and colors, plot the thickest lines and largest markers first since the ones plotted later will be on top, this code demonstrates this:

x=1:5;
plot(x, x, 'color', 'b', 'marker', 'o', 'markersize', 10, 'linewidth', 1)
line(x, x, 'color', 'g', 'linewidth', 1, 'marker', 's', 'markersize', 5, 'markerfacecolor', 'g', 'linestyle', '--')

Upvotes: 1

Related Questions