how to handle legend outputs

2 views (last 30 days)
Dyon
Dyon on 28 Jan 2015
Commented: Dyon on 28 Jan 2015
Hi I am having some trouble suppressing details in legend control. This is because I use a separate function to plot my output. Because of this reason I am unable to use a handle such as f1=plot(...).
what I have done is after the the function plots the figure I require I would then assign the title and axes labels. So when it comes to the legend this doesn't exactly work. So by trying out
legend ('','','',....)
I have found where the required plot details fall in so now I just want to print out the once I require and leave out the rest.

Accepted Answer

Image Analyst
Image Analyst on 28 Jan 2015
Just make your modifications inside the function. If you really can't for some reason, then pass out the handle to the plot from the function.
  1 Comment
Dyon
Dyon on 28 Jan 2015
Thanks Image Analyst. I did the changes within the function and passed the handles along with the plots.Then I controlled the legends outside the function.
Thanks again Cheers !

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!