See the Plot Editor for information on plot annotation tools in the figure window toolbar. See the text String property for a list of symbols and how to display them. set( findobj(gca,'Type','line','Color',).Īxis, bar, grid, hold, legend, line, LineSpec, loglog, plotyy, semilogx, semilogy, subplot, title, xlabel, xlim, ylabel, ylim, zlabel, zlim, stem. In the same statement, set the LineWidth property to 2 points. Now change the line color to red by first finding the handle of the line object created by plot and then setting its Color property. For example, using the graph from the previous example, add an x- and y-axis label, MATLAB enables you to add axis labels and titles. Now add axis labels and annotate the point -pi/4, sin(-pi/4).Īdding Titles, Axis Labels, and Annotations For example, this plot of the sine function relabels the x-axis with more meaningful values, You can adjust the axis tick-mark locations and the labels appearing at each tick. Specifying Tick Mark Location and Labeling
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |