AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Title for subplot matlab3/13/2023 ![]() Y2 = sin ( 2 * x ) plot ( x, y2 ) set ( s2, 'Xcolor', 'white', 'Ycolor', 'white' ) title ( 'Subplot 2: sin(2x)', 'color', 'white' ) Y1 = sin ( x ) plot ( x, y1 ) set ( s1, 'Xcolor', 'white', 'Ycolor', 'white' ) title ( 'Subplot 1: sin(x)', 'color', 'white' ) An example is as follows:įigure ( 'Color', ) It must be placed at the end of all subplots. Placement of View Image sgtitle is similar to suptitle. sgtitle and its usageĪs you can see from the help system, sgtitle can configure all the attributes of text in matlab's regular commands, such as font color, size, symbols, bold and oblique, and even frame and so on. ![]() At this time, the best choice is to use sgtitle. Please see the picture below:Īs you can see from the picture above, when the background color is light, using suptitle to add the general title looks OK, but when the background color is dark, it is very embarrassing. By default, the overall title generated by suptitle looks perfect, but this is only by default.īut when the background color of the figure is black, it looks very bad. Y4 = sin ( 8 * x ) plot ( x, y4 ) title ( 'Subplot 4: sin(8x)' ) suptitle ( 'JaySur: suptitle this line is the total title' )Ībove View Image is an example of using suptitle. Y1 = sin ( x ) plot (, ) title ( 'Subplot 1: sin(x)' ) subplot (
0 Comments
Read More
Leave a Reply. |