Line resolution and crispness

2 次查看(过去 30 天)
Theo
Theo 2011-10-7
I notice that often when I draw lines in Matlab, the line is not very crisp. Here are two images where this cragginess is apparent. The images only differ by the thickness of the white line. They were both outputted to png format, but the loss in quality is apparent from the beginning, and within the Matlab figure window.
How can I make the white line smooth? It's not a question of using enough points within the curve. Increasing the number of points does not alleviate the cragginess.

回答(1 个)

Walter Roberson
Walter Roberson 2011-10-7
Possibly if you lifted the Z for the lines slightly higher? It appears to me that in places the corners of the blue patches are above the white line.
  2 个评论
Theo
Theo 2011-10-7
I agree that it seems to have something to do with the rendering of the surface underneath the line. However, raising the line does not do anything. It still remains craggy (perhaps, as you pointed out, in the regions where the black contour lines of the surface intersect the white line)
Bjorn Gustavsson
Bjorn Gustavsson 2011-10-7
In addition to Walter's trick you could perhaps increase the linewidth a bit? If you change the rotation of the axis after plotting the white line maybe the problem goes away if you set the final view-point before plotting the white line instead.

请先登录,再进行评论。

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by