![]() ![]() 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() Matlab Help Index Technical Documentation. First, you can adjust the font size in your call to YLABEL: ylabel('Number of Occurrences','FontSize',7) subplottitle - displays a title for a subplot, across all subplots. 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. ![]() SUPTITLE('text') adds text to the top of the figure above all subplots (a 'super title'). The difference is ntitle keeps the text closer to the data, whereas title places the text high above the axes, where it may appear to be an xlabel for to the plot above. Matlabsuptitlesgtitlesubplotsfigure suptitlesgtitle suptitle helpsuptitlefunction, function houtsuptitle(str) SUPTITLE puts a title above all subplots. For the axis labels, Matt is correct about them having to be placed after the call to BAR. For subplots I often prefer to use ntitle rather than title. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |