MATLAB: How to enlarge legend marker size

legend markersize

I want to increase marker size in the legend (not font size)

Best Answer

The legend components cannot be independently changed. A workaround is to duplicate the objects on your plot but replace their coordinates with NaN values so the objects appear in the legend but do not appear in the plot.
Follow this demo that changes the line properties in the legend. You can easily adapt it to change the marker properties. If you have any problems, please share your code.
Related Question