How to create an overall legend that includes all appeared data groups?
I’m trying to make a plot, using the tiledlayout function to create 4 subplots, while in the first subplot, there are 5 data groups, while the remaining subplots only have four of those 5 groups. If I create an overall legend, it will only show 4 groups that appeared in all the subplots, and automatically omit the extra one that’s only shown in the first subplot, how to include that grounp into the overall legend as well? Thanks!I’m trying to make a plot, using the tiledlayout function to create 4 subplots, while in the first subplot, there are 5 data groups, while the remaining subplots only have four of those 5 groups. If I create an overall legend, it will only show 4 groups that appeared in all the subplots, and automatically omit the extra one that’s only shown in the first subplot, how to include that grounp into the overall legend as well? Thanks! I’m trying to make a plot, using the tiledlayout function to create 4 subplots, while in the first subplot, there are 5 data groups, while the remaining subplots only have four of those 5 groups. If I create an overall legend, it will only show 4 groups that appeared in all the subplots, and automatically omit the extra one that’s only shown in the first subplot, how to include that grounp into the overall legend as well? Thanks! plotting, legend, tiledlayout, subplots MATLAB Answers — New Questions