How can I align the text in center of legend?

43 views (last 30 days)
Hi everybody,
I want to center the text vertically in the legend box
any help would be highly appreciated;
Riyadh

Answers (1)

Adam Danz
Adam Danz on 27 Sep 2018
Edited: Adam Danz on 27 Sep 2018
As is suggested in your previous question, read the documentation for the legend function.
You are currently setting the Orientation property to Horizontal. Try setting it to Vertical. Another solution is to change the NumColumns parameter. If that's not what you're looking for, please specify what you mean by aligning the text in the center.
  2 Comments
Adam Danz
Adam Danz on 27 Sep 2018
Again, I think you are currently setting the Orientation property as Horizontal when you want it to be Vertical.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!