Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

Tuesday, March 24, 2015

Set marker edge width in Matlab figures

A few days in the past, I plotted about twenty figures and was making an attempt to set the markers with thicker edge. This might be very straightforward if it was in Excel: simply change the 'Marker Line Fashion' within the 'Format knowledge collection' tab. Nevertheless, it was sort troublesome to do in Matlab. At the very least I did not get an excellent answer from the google outcomes on that day.

At the moment I occurred to seek out the answer once I was enjoying with Matalb only for enjoyable. The very fact is that the 'Marker Edge Width' is definitely outlined by the 'LineWidth', even when the plot doesn't use a line to attach the markers..

t=[1:5];
plot(t,sin(t), 's', 'Markersize', 20,'LineWidth', 5)  



Set marker edge width in Matlab figures

A couple of days ago, I plotted about twenty figures and was trying to set the markers with thicker edge. This would be very easy if it was in Excel: just change the 'Marker Line Style' in the 'Format data series' tab. However, it was kind difficult to do in Matlab. At least I didn't get a good solution from the google results on that day.

Today I happened to find the solution when I was playing with Matalb just for fun. The fact is that the 'Marker Edge Width' is actually defined by the 'LineWidth', even when the plot does not use a line to connect the markers..

t=[1:5];
plot(t,sin(t), 's', 'Markersize', 20,'LineWidth', 5)