About 9,760,000 results
Open links in new tab
  1. Legend - Legend appearance and behavior - MATLAB - MathWorks

    You can create interactive legends so that when you click an item in the legend, the associated chart updates in some way. For example, you can toggle the visibility of the chart or change its …

  2. How can I modify the length of the lines in a legend?

    Sep 1, 2010 · The following example code illustrates how you can reduce the length of the lines shown in the legend of a plot in MATLAB R2024b and later. Using multiple outputs from the …

  3. Modify legend markers in plot - MATLAB Answers - MATLAB …

    Hi, The figure below shows the legend containing 8 legend entries and I would like to reduce it to 4 entries by changing the markers as shown manually. Thank you.

  4. How can I change the marker size in legend? - MATLAB Answers

    Oct 9, 2012 · Use the l = legend(__) syntax to return the legend object and set Legend Properties instead. For example, if the first and second outputs to legend() are both included, it interferes …

  5. How to change color of lines on legend? - MATLAB Answers

    Jul 14, 2018 · I used your solution to ignore a very high amount of line() plots from the legend, while your code just builds the legend manually using as trick void but coloured plots. The …

  6. How can I change the appearance of the lines in the legend in a …

    Aug 31, 2010 · The handles for the line objects in the legend are returned as part of the output from LEGEND. You can use the SET command to change the properties if you have the lines' …

  7. How do I make a figure legend multiple lines? - MATLAB Answers

    May 18, 2022 · To split legend to multiple lines, use the "newline" function or the ASCII character 10 for new line, for example:

  8. How to change symbol size and contour size in legend …

    Sep 20, 2020 · I wanted to make the marker size of scatter plot larger and the token size of the contour symbol in legend smaller, so I used the following code: x=1:20; a=rand(20,20); figure; …

  9. Editing colors in the legend - MATLAB Answers - MATLAB Central

    Jul 8, 2015 · If you want the legend in the northwest corner, change the legend call to this: legend( 'DATASET1' , ' DATASET2' , 'Location' , 'Northwest' ); Loops are not clumsy.

  10. TeX (LaTeX math mode) symbols in legends and labels in MATLAB …

    Nov 22, 2011 · By default, MATLAB supports a subset of TeX markup. For a list of supported symbols, see the documentation . For more symbols, you can use LaTeX markup by setting …

Refresh