![]() ![]() 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. It would not be possible to scroll or pan or zoom the images individually, and you would need extra work to data cursor them individually.For the axis labels, Matt is correct about them having to be placed after the call to BAR. Use montage or similar to create a 4 x 2 image array and display it in an axes that you put appropriate text labels on.Each axes could been panned, scrolled, zoomed, or data cursored individiually. Using subplot() for this might not be bad, but you will need to move the axes carefully. Then carefully "tuck" the axes in so only the wanted parts show. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |