The method of Matlab big picture thumbnail

Reference https://wenku.baidu.com/view/0a41296fc5da50e2524d7f8d.html

1. The code is as follows:

t = 0 . 1 : 2 * pi;

plot(t,sin(t),'g');
xlim ([ 0 , 2 * pi]);
xlabel ( ' x ' ) 
ylabel ( ' and ' )
%小图 axes (
' position ' , [ 0.55 , 0.55 , 0.3 , 0.3 ]);% The key phrase! Painted panels plot(t,sin(t)); xlabel('t') ylabel ( ' and ' ) XLIM ([ 0 , . 1 * PI]); the abscissa% range provided subgraph

2. Axes of how to set parameters in the end it? Reference https://zhidao.baidu.com/question/177108208.html?qbl=relate_question_0

Axes set position, width and height lower left, and the entire unit is the aspect ratio figure.
Four lower-left corner coordinates of the starting point is the order number of horizontal and vertical coordinates and length, height.

 3. FIG plurality of sub-picture a large panel:

= T 0 :. 1 : 2 * PI;
 % subgraph 1
subplot(2,1,1)
plot(t,sin(t),'g');
xlabel('x')
ylabel ( ' Y ' )
 % sub-panel of FIG. 1
axes ( ' position ' , [ 0.55 , 0.55 , 0.3 , 0.3 ]);% The key phrase! Painted panels
plot(t,sin(t));
xlabel('t')
ylabel ( ' and ' )
XLIM ([ 0 , . 1 * PI]);% abscissa range setting subgraph

% Subgraph 2
subplot(2,1,2)
plot(t,cos(t),'g');
xlabel('x')
ylabel ( ' Y ' )
 % sub-panel of FIG. 2
axes ( ' position ' , [ 0.55 , 0.25 , 0.3 , 0.3 ]);% The key phrase! Painted panels
plot(t,cos(t));
xlabel('t')

 

 in the end

Guess you like

Origin www.cnblogs.com/TTTTT/p/12114074.html