pcolor in R2016a broken when using Intel graphics?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SimpleYeti
am 29 Mär. 2016
Bearbeitet: Rick Irons
am 31 Mär. 2016
I've run into a problem using 'pcolor' on R2016a. When I run the following:
[x, y] = meshgrid(linspace(0, 1, 200), linspace(0, 1, 200));
pcolor(x, y, ones(size(x)))
I get:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159318/image.png)
Obviously this is not correct. When I set 'opengl software' the problem goes away. This does not occur when using R2015a on the same laptop, and I believe it might be tied to the integrated graphics on the laptop in question (Intel HD Graphics 5500 on Windows 10 using the latest driver) as it does not occur on a desktop using Nvidia graphics. Is there anything that I can do to fix this problem without resorting to software OpenGL?
4 Kommentare
Image Analyst
am 29 Mär. 2016
You can use meshgrid() to create two 2D arrays of coordinates (your x and y) that you can use directly in your function to create a 2D image, which you then pass in to imshow(). Do you want an example?
Akzeptierte Antwort
Rick Irons
am 29 Mär. 2016
Bearbeitet: Rick Irons
am 31 Mär. 2016
This is a known driver issue that Intel has addressed in their recent 4380 driver. One workaround is to use the OpenGL hardware basic mode (“opengl hardwarebasic”). Another option is to disable the align vertex centers property (“h.AlignVertexCenters = 'off'") if it is available for the object demonstrating the issue.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!