how to handle legend outputs
2 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
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.
More Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!