If no legend exists for the current axes, one is created using default strings. Removes the legend in the current axes or the axes specified by axes_handle. This is the same as legend(string_matrix(1,:),string_matrix(2,:).).Īssociates each row of the matrix string_matrix with the corresponding graphics object in the vector h.ĭisplays the legend for the axes specified by axes_handle. The font size and font name for the legend strings match the Axes FontSize and FontName properties.ĭisplays a legend in the current axes using the specified strings to label each set of data.ĭisplays a legend on the plot containing the objects identified by the handles in the vector h and using the specified strings to label the corresponding graphics object (line, barseries, etc.).Īdds a legend containing the rows of the matrix string_matrix as labels. When plotting filled areas (patch or surface objects), the legend contains a sample of the face color next to the text label. For each line plotted, the legend shows a sample of the line type, marker symbol, and color beside the text label you specify. Legend places a legend on various types of graphs (line plots, bar graphs, pie charts, etc.). Legend(li_object,string1,string2,string3) Legend('boxon'), legend(axes_handle,'boxon') Legend('boxoff'), legend(axes_handle,'boxoff') Legend('show'), legend(axes_handle,'show') Legend('hide'), legend(axes_handle,'hide') Legend('toggle'), legend(axes_handle,'toggle') Legend (MATLAB Functions) MATLAB Function Reference
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |