Have A Tips About Plot Secondary Axis Matlab Linear Regression Graph In R
Subsequent graphics functions, such as plot, target the.
Plot secondary axis matlab. To plot a set of coordinates connected by line segments, specify x and y as vectors of the. The yyaxis left command creates the axes and activates the left side. I have four lines to plot:
Create a second axes object and plot the second set of data in black rather than red. The default for visibility is on , which displays the axes background. Detailed examples of multiple axes including changing color, size, log axes, and more in matlab.
Following is a modified version of your code which will give you the secondary x axis at the top of the plot with an xlabel as required. Plots in the axes still display.