how to shift a subscript upwards in Matlab plot legend?

9 views (last 30 days)
I have "V_c" in the legend of a figure. However, the subcript "c" is far from "V". Could you please guide me how to make "c" closer to "V", in other words shift it up a little as below?

Answers (1)

Jan
Jan on 20 Jun 2022
Edited: Jan on 20 Jun 2022
plot(1:10)
legend('$V_c$', 'Interpreter', 'latex', 'FontSize', 15)
figure
plot(1:10)
legend('$V_{\raisebox{1ex}{c}}$', 'Interpreter', 'latex', 'FontSize', 15)
  1 Comment
Amro Alsabbagh
Amro Alsabbagh on 20 Jun 2022
Thank you verym much. Could you please guide me how to allign the frame of legend to be on the frame of the plot (i.e., edges on edges)?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!