Patch Interp Coloring 2013b vs 2014b
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone, I'm having yet another issue with patch coloring in 2013b vs 2014b. I am using the the "FaceVertexCData" option in the patch command to give my patch color filling a gradient look. It seems that whenever I have a FaceVertexCData matrix of values greater than 500, I get strange results in Matlab 2013b, but not in 2014b. Let me illustrate with an example.
The following is a patch of France (from a shape file) with the patch filled in as a gradient from red to blue (yes, I know, I have the French flag backwards...), using a FaceVertexCData matrix of exactly 500 colors (I down-sampled the shape file to 500 points).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147178/image.png)
Next, we have the original shapefile with around 1000 points, and thus, a FaceVertexCData matrix of around 1000 points (the exact number is irrelevant, as matrix sizes greater than 500 seem to cause the issue):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147179/image.png)
Once again it is clear that there are oddities with the color gradient. The gradient lines seem to originate from a central origin point (which happens, probably not coincidentally, to be the first point in the list of points provided in the shape file). Both of these pictures are from 2013b, this behavior does not happen in 2014b.
Does anyone have any theories on why this is happening? I remember I had a strange fopen problem once where I wasn't closing my files, and I had more than 512 of them open and had used all Matlab allocated file handles (see this link ), is this something similar?
Thank you in advance,
Chris
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!