![]() Here's a solution I saw on a MATLAB exchange forum a while back and that worked for me pretty well. ![]() SUPTITLE('text') adds text to the top of the figureĪbove all subplots (a "super title"). SUPTITLE Puts a title above all subplots. It places the title centered above all plots. This will create a static text box of width 100 pixels and height 25 pixels placed at the center of the top of the figure and with the same background color as the figure. You can get the size and the position of the figure first to help you place the text box near the top and center: figureSize = get(gcf,'Position') ![]() To add a title to the entire figure, the best option is probably to make a UICONTROL static text object and adjust its position so it is placed near the top of the figure. Second, you can convert one long label into a multi-line label by using a cell array of strings instead of just a single string: ylabel() First, you can adjust the font size in your call to YLABEL: ylabel('Number of Occurrences','FontSize',7) You have a couple of options to fix this. However, you'll likely notice that your y-axis labels in particular may end up being written over one another if they are too long. That will take care of one axis label problem. Create two subplots across the upper half of the figure and a third subplot that spans the lower half of the figure. For the axis labels, Matt is correct about them having to be placed after the call to BAR. Subplots with Different Sizes Create a figure containing with three subplots.
0 Comments
Leave a Reply. |