Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
how to customize legend in Matlab plots

Subject: how to customize legend in Matlab plots

From: Jerry

Date: 23 Feb, 2009 20:13:02

Message: 1 of 1

if I have the following plotting items in a graph: green circle, blue circle, red circle, green square, blue square, red square and would like to annotate my graph in the following way:

green -- textA
blue -- textB
red -- textC
circle -- textD
square -- textE

the command legend won't work like this. how can I implement it myself? Thanks for your hints.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us