How to see difference in color which has been overlapped between two fills?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ajay Goyal
am 15 Jun. 2018
Kommentiert: Ajay Goyal
am 18 Jun. 2018
I have two curves; for example
clc; clear all; close all;
x1=[-1:0.01:1];
y1=1-x1.^2;
x2=[-2:0.01:2];
y2=1-x2.^2;
fill(x1,y1,'k')
hold on, fill(x2,y2,'c')
Now I want to see clear difference of color which has been overlapped.As of now can only see the dominating color (in this example, I could not see black color. I wish to see resultant color (resultant color of combination of cyan and black) of overlap. Kindly help
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 15 Jun. 2018
Specify the 'FaceAlpha' opacity/transparency factor:
fill(x2, y2, 'c', 'FaceAlpha', 0.6)
4 Kommentare
Walter Roberson
am 16 Jun. 2018
x2=[-2:0.01:2];
y2=1-x2.^2;
fill(x2,y2,'c')
hold on
x1=[-1:0.01:1];
y1=1-x1.^2;
fill(x1,y1,'k','faceAlpha',0.6)
x3=[-0.5:0.01:0.5];
y3=1-x3.^2;
fill(x3,y3,'w')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Blue 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!