How to plot inset in a subplot defined by axesand position?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to insert inset into a subplot defined by position command, but it gives me error. Here is the code i wrote , so just the inset appears and not the subplot.
figure('position',[100 100 800 900])
subplot('position',[100 100 800 300])
x=linspace(1,10);
y=linspace(1,10);
plot(x,y)
h=axes('Parent', gcf, 'Position',[.6 .85 .3 .07])
plot(h,x,y,'b-','linewidth',1.5)
0 Kommentare
Antworten (1)
KSSV
am 24 Feb. 2022
figure('position',[100 100 800 900])
% subplot('position',[100 100 800 300])
x=linspace(1,10);
y=linspace(1,10);
plot(x,y)
h=axes('Parent', gcf, 'Position',[.6 .85 .3 .07])
plot(h,x,y,'b-','linewidth',1.5)
2 Kommentare
Siehe auch
Kategorien
Mehr zu Data Type Conversion 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!

