Why does my line plot in MATLAB show a color gradient of black, green, and red?

1 次查看(过去 30 天)
As seen in the attached image, I am trying to create a line plot with a particular color but it is displayed with a color gradient, predominantly of black, green, and red. This happens even if the default Color property is overridden. How can this be fixed?

采纳的回答

MathWorks Support Team
This behavior is a known issue with certain Intel drivers. It has been addressed in the recent 4380 driver. There are two workarounds:
1) Use the OpenGL hardware basic mode
opengl hardwarebasic
2) Disable the align vertex centers property of the line
h=line(1:10);
h.AlignVertexCenters='off';

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by