Plot Line Changes When Adding Patches
Ältere Kommentare anzeigen
Hi, I have a basic plot in MATLAB (plot(x,y)), but when I add patches to the figure (in order to shade regions of night), it changes the original plot line to a step-like line. I am not quite sure why the addition of patches does this. I have two links to images: the first shows the original plot and the second shows what happens to the plot with the addition of patches. Any help would be greatly appreciated. Thank you.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 20 Jun. 2011
0 Stimmen
Your shading involves transparency, and only the OpenGL renderer can handle transparency, so the renderer gets changed to OpenGL for your second plot.
Skipping explanation for the moment: what might help is to give your patches a small negative Z coordinate so they are "below" the lines.
1 Kommentar
Danny
am 20 Jun. 2011
Kategorien
Mehr zu Lighting, Transparency, and Shading finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!