PLOTINSET(X, Y, POSITION, WINDOWSIZE, 'xlimit', xlimit, 'ylimit', ylimit) creates a plot of vector Y versus vector X, and on top of it, creates an inset plot of size specified by WINDOWSIZE in the current figure, positioned at the location specified by POSITION.
Bottom left corner is the starting position for placement. Both size and position are scaled to accept values in range 0-1, which is the fraction size of the current plot. For example, WINDOWSIZE [.3 .3] indicates a size of the inset about one-third of the current figure.
Use parameter 'xlimit' or 'ylimit' followed by a vector containing limits for the x and y axes. Passing appropriate values for 'xlimit' and 'ylimit' will cause the inset plot to be shown as a mganification of a portion of the larger plot.
引用格式
Vinaya Shrestha (2026). Plot as Inset (https://ww2.mathworks.cn/matlabcentral/fileexchange/30944-plot-as-inset), MATLAB Central File Exchange. 检索时间: .
