Multiple Legend and Mark Partial Layers constitute multiple columns

xiaoxiao2021-03-06  96

Source: http://genial.yculblog.com/post-138255.html

Mountain City Battle Truck @ 2004-08-22 16:02? However, you can't have that Legend Box. Otherwise, it is difficult to see Matlab7 again, and the difference between MATLAB6.5.1, there is a slight different code on this program, so after this, only the second Legend, the first is that the specific thing is not allowed to continue to find the reason, I have seen the code you have seen: t = 0: pi / 48: 2 * pi; y1 = sin (t); Y2 = COS (T); Y3 = Y1. * Y2; Y4 = 0.5 * (Y1 Y2); HOLD ON H1 = PLOT (T, Y1, 'R-') H11 = PLOT (T (1: 10: End), Y1 (1: 10: End), '*', 'Markercolor', 'R', 'MarkeredgeColor', 'R'); H2 = Plot (T, Y2, 'B-'); H22 = PLOT (T (T 1: 10: End), Y2 (1: 10: End), '.', 'Markercolor', 'B', 'MarkeredgeColor', 'B'); H3 = PLOT (T, Y3, 'Y'); H4 = Plot (T, Y4, 'G'); Hold Off [Legh, Objh, Outh, OUTM] = Legend ([H1, H2], 'Y1', 'Y2', 1); Legend Boxoff% Matlab 6.5. 1 set (Objh (3), 'Marker', '*'; set (Objh (5), 'Marker', '.');% Matlab7% set (Objh (4), 'marker', '*' );% set (Objh (6), 'marker', '); legh2 = COPYOBJ (Legh, GCF); [Legh2, Objh2] = Legend ([H3, H4],' Y3 ',' Y4 ', 2); Legend Boxoff

转载请注明原文地址:https://www.9cbs.com/read-124111.html

New Post(0)