Plot different grains in different colors #862
-
What I'm trying to do is to color some grains with one color and others with another color. mergedGrains.color = str2rgb('Blue') |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi Nikita, this is not meant to work. The correct syntax is plot(grains,'facecolor','red') Ralf. |
Beta Was this translation helpful? Give feedback.
-
Try maybe:
plot(grains, ‘FaceColor’, ‘b’)
… On Mar 18, 2021, at 8:36 AM, NikitaSakharov ***@***.***> wrote:
What I'm trying to do is to color some grains with one color and others with another color.
Unfortunately this does not work, the map I get is a monocromatic one.
Here is my code
mergedGrains.color = str2rgb('Blue')
grains.color = str2rgb('Yellow')
plot(mergedGrains)
hold on
plot(grains(nonTwinId))
hold off
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
By the way, mergedGrains and grains(nonTwinId) are different 'structures'. Here is example from which you can understand which of the grains are 'mergedGrains' and which of them are 'grains(nonTwinId) ' plot(grains, grains.meanOrientation) we get the following image |
Beta Was this translation helpful? Give feedback.
Hi Nikita,
this is not meant to work. The correct syntax is
Ralf.