Clear Filters
Clear Filters

give title on the left side of subplot

67 views (last 30 days)
i need to give titles, is it possible to give title at the side of subplot as follows

Accepted Answer

KSSV
KSSV on 30 Dec 2016
You can make title as ylabel and achieve what you want..
x = linspace(0,10);
y1 = sin(x);
y2 = sin(5*x);
figure
subplot(2,1,1);
plot(x,y1)
ylabel('title1')
set(get(gca,'YLabel'),'Rotation',0)
subplot(2,1,2);
plot(x,y2)
ylabel('title2')
set(get(gca,'YLabel'),'Rotation',0)
  2 Comments
Fryderyk Kögl
Fryderyk Kögl on 19 Sep 2018
And what if I already used the ylabel function to create a label for the y axis?
Stephen
Stephen on 13 Apr 2023
No answer... of course not

Sign in to comment.

More Answers (1)

Tiezheng Song
Tiezheng Song on 29 Jan 2019
I have found a great answer here. Hope this would be helpful!

Categories

Find more on 2-D and 3-D Plots 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!