Patch Interp Coloring 2013b vs 2014b

1 Ansicht (letzte 30 Tage)
Chris
Chris am 17 Feb. 2015
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).
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):
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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by