How to color a small squared or half squared zone of the plot?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Nisar Ahmed
am 30 Dez. 2021
Kommentiert: Nisar Ahmed
am 3 Jan. 2022
Hi, everyone, here it is graph between P vs t, as shown below and the data is also attached here. I want shade a say light blue color in the squre zone having Y axis limit 1865 - 1890. The shade should be in transparent color and plot have to be in stairs and visible within shade zone. How I acn do it, if not complete squared zone, then left half part with same y axis limits should be in colored patch.
0 Kommentare
Akzeptierte Antwort
KSSV
am 30 Dez. 2021
B = [23 1865; 36 1865; 36 1890 ; 23 1890] ;
patch(B(:,1),B(:,2),'b') ;
hold on
plot(p,t) ;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!