![octave cplot octave cplot](https://i.pinimg.com/736x/05/21/ba/0521ba60ff7b3ed2fd6bb3752559c0cf.jpg)
Labels or DisplayNames are available, then the label text is simply Is taken from the DisplayName property of graphics objects. The legend label text is either provided in the call to legend or Graphics handles to the plot objects which were used in making the legend.Ī cell array of strings of the labels in the legend. Graphics handles to the text and line objects which make up the legend. The graphics handle of the legend object. Place label text to the right of the keys (default) Toggles between "hide" and "show" "boxon" The following customizations are available using option: The optional parameter orient determines if the key elements are The optional parameter pos specifies the location of the legend A plot must exist before legend is called. legend works on line graphs,īar graphs, etc. Hobjs, are not specified then the legend’s strings will be associated Rather than the current axes returned by gca. Legend entries may be specified as individual character string arguments,Ī character array, or a cell array of character strings. : legend ( str1, str2, …) : legend ( matstr) : legend ( cellstr) : legend (…, "location", pos) : legend (…, "orientation", orient) : legend ( hax, …) : legend ( hobjs, …) : legend ( hax, hobjs, …) : legend (" option") : = legend (…)ĭisplay a legend for the current axes using the specified strings as labels. The optional return value h is a graphics handle to the created text If the first argument hax is an axes handle, then plot into this axes, The appearance of the created title text object. Specify the string used as a title for the current axis.Īn optional list of property/ value pairs can be used to change : title ( string) : title ( string, prop, val, …) : title ( hax, …) : h = title (…) Those objectsĪre drawn in an invisible axes, on top of every other axes. Highlight parts of a plot using the annotation function. By default, the grid is off and theįinally, arrows, text and rectangular or elliptic boxes can be added to The functions grid and box may also be used to add gridĪnd border lines to the plot.