Skip to main content

All Questions

2 votes
1 answer
99 views

How to change the legend string for different subplots?

I would like to add a legend to every subplot as shown below each legend is theta_(1/2)=5, theta_(1/2)= 10, theta_(1/2)=15,...,theta_(1/2)=60. How can I change the number for each legend? Q = [16,32,...
SH_IQ's user avatar
  • 655
11 votes
1 answer
20k views

How to have a common legend for subplots?

I am trying to create a figure of subplots. I don't want the subplots to have legends but instead the figure to have an overall legend. I read that it is possible either by adding a legend only to ...
Whitebeard13's user avatar
4 votes
1 answer
7k views

Matlab: subplot with sublegend

I want to add a legend at the bottom of a subplot (2 by 2): As you can see the charts in the 2nd row are squeezed a little bit because I manually adjusted it. Is there a function like sublegend(...) ...
Markus's user avatar
  • 773
0 votes
1 answer
2k views

MATLAB - Add legend next to some chosen plots in a subplot - for loop

I want to add legends in a subplot, bu only for certain plots. Here is my code : for j = 1:length(FL) for i = 1:length(index_list) pos=pos+1; subplot(size(FL,1),length(index_list), pos) ...
Julien Corbo's user avatar