Matching axes will become the current axes. In which case all other overlapping axes will be deleted and the Matches the position of the new axes (and 'replace' was not specified), Side - unless there is an axes there with a position that exactly The left side of the Figure window and creates a new axis on that The statement SUBPLOT(1,2,1) deletes all existing axes overlapping Of the new and existing axis are identical. If a SUBPLOT specification causes a new axis to overlap anĮxisting axis, the existing axis is deleted - unless the position Subplot to a specific figure pass the figure handle as the Specified property-value pairs on the subplot axis. SUBPLOT(m,n,p, PROP1, VALUE1, PROP2, VALUE2. SUBPLOT('position',) creates anĪxis at the specified position in normalized coordinates (in SUBPLOT(H), where H is an axis handle, is another way of makingĪn axis current for subsequent plotting commands. That covers all the subplot positions listed in P. SUBPLOT(m,n,P), where P is a vector, specifies an axes position SUBPLOT(m,n,p,'align') places the axes so that the plot boxesĪre aligned instead of preventing the labels and ticks from SUBPLOT(m,n,p,'replace'), if the axis already exists, deletes it and SUBPLOT(m,n,p), if the axis already exists, makes it current. Panel is used as the parent for the subplot instead of the If the CurrentAxes is nested in a uipanel the Plots income on the top half of the window and outgo on theīottom half. The axesĪre counted along the top row of the Figure window, then the Into an m-by-n matrix of small axes, selects the p-th axes forįor the current plot, and returns the axis handle. H = SUBPLOT(m,n,p), or SUBPLOT(mnp), breaks the Figure window What follows comes from MATLAB's help function in MATLAB R2009a (some
#Plotting fucntion in matlab 2017 windows
The subplot function is used to plot multiple plot windows Will create a plot with a dark red line width of 2 points. For example, PLOT(X,Y,'LineWidth',2,'Color',) Parameter/value pairs to specify additional properties The X,Y pairs, or X,Y,S triples, can be followed by If you do not specify a line style, PLOT uses a solid line. If you do not specify a marker type, PLOT uses no marker. PLOT cycles over the axes LineStyleOrder property. Through the first six colors in the table. The defaultĬolorOrder is listed in the table above for color systems where theĭefault is blue for one line, and for multiple lines, to cycle The colors specified by the axes ColorOrder property. The PLOT command, if no color is specified, makes automatic use of Solid yellow line interpolating green circles at the data points. The (X,Y,S) triples, where the X's and Y's are vectors or matricesįor example, PLOT(X,Y,'y-',X,Y,'go') plots the data twice, with a For example, PLOT(X,Y,'c+:') plots a cyan dotted line with a plusĪt each data point PLOT(X,Y,'bd') plots blue diamond at each data