Sub-plots properties
이전 댓글 표시
Hi. I have 4 MATLAB figures, using them as sub-plots I want to create a new figure. These 4 figures have a larger marker size and line width.
How can, I change/modify the line width, marker size in these subplots? I want to add labels "a, b, c, d" on the bottom left of figure. Also, I want to add some text on top left corner of each sub-plot figure.
채택된 답변
추가 답변 (1개)
Bhaskar R
2020년 2월 12일
subplot(1, 2,1), plot(1:10);
subplot(1, 2,2), plot(2*1:10);
ax = gca; % using gca fields you can do
ax.Children.Marker = 'you can set here'
댓글 수: 1
Rik
2020년 2월 12일
A better habit would be to store the output of the subplot call to store the handle to the axis.
For directly editing the plot properties you could also consider storing the handle to the line object that the plot function returns.
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!