Plot markers as a continuous line
73 次查看（过去 30 天）
Hi there, I am trying to plot lots of points representing a seismic fault over some topography. I am plotting the data in the form plot(x,y,'.') but as the data represnets a shape I need the gaps between each of the points filling so it looks like a smooth line.
plotting in the form plot(x,y'-') is very messy.
Any ides on how to fix this?
Image Analyst 2019-3-2
Don't use the dash line specifier because it looks like you might be plotting one 2-D array and the ends of one line are connecting to the beginning of the next line.
Just use dot and the MarkerSize property and see if that works for you.
plot(x, y, 'b.', 'MarkerSize', 10);
Adjust color and MarkerSize as needed.
If it's a 2-D array you're plotting, consider plotting each row or column one at a time rather than the 2-D matrix all with one call to plot().