Rotate a horizontal matlab legend so that it is parallel to the y-axis

12 views (last 30 days)
Hi,
I have a plot containing 4 lines, with a corresponding legend of the form:
lgd=legend({'$J_0/\mu = 0$','$J_0/\mu = 0.3$','$J_0/\mu = 0.6$'...
,'$J_0/\mu = 0.8$','$J_0/\mu = 0.9$'},'Interpreter','latex','Position',[0.5 0.05 0.1 0.1],'Orientation','horizontal')
Note that the orientation is horisontal.
I want to rotate this legend by 90 degrees, so that I can place it parallel to the y-axis. Is there an easy way to do this?

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!