Why does the resolution become extremely bad when increasing the linewidth when using the the circle as marker.
Mostrar comentarios más antiguos
As the title is conveying.
% Example
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
% Plot
sc = scatter(x,y,3*100);
sc.LineWidth = 10;
Why do the circles become like "plus signs" when increasing the line width instead of becoming larger circles?
How can I increas the size and line width of the marker edge in a plot or scatter plot without loosing quality?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de Sept. de 2019
0 votos
OpenGL has no built-in markers. All that it has are built-in square points. Therefore in order to create the markers, MATLAB has to draw the markers as a series of short lines. When markers are drawn for scatter() plots, then each line segment is a rectangle of given thickness, centered around the line joining two vertices. With each line segment being a rectangle, when the line width is high, those rectangles stick out noticably.
If you use plot(), then plot knows how to join line segments more smoothly. It has a property LineJoin that defaults to 'round', but my investigations suggest that LineJoin is not used for markers. Some other algorithm appears to be used for the round marker for line objects.
Categorías
Más información sobre Discrete Data Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
