Data Tips - Labels and Text size
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi,
Just having a few issues with data tip labels writing over the pevious label name , so in this case both data tips get labelled as 'Rise Time' , when one should be 'Rise Time' and the other 'Steady State Speed'. Also cannot get the font size to change.
Any help would be great thanks.
Regards,
Josh
subplot(2,1,2)
ax = gca;
chart = ax.Children(7);
datatip(chart,0.15,64.21);
chart.DataTipTemplate.DataTipRows(1).Label= 'Steady State Speed';
chart.DataTipTemplate.DataTipRows(1).Value ='';
chart.DataTipTemplate.FontSize=1;
chart.DataTipTemplate.DataTipRows(2).Label= '';
% chart.DataTipTemplate.DataTipRows(2).Value='64';
datatip(chart2,0.0072,63);
chart2.DataTipTemplate.DataTipRows(1).Label= 'Rise Time';
chart2.DataTipTemplate.DataTipRows(1).Value ='';
%chart.DataTipTemplate.FontSize=1;
chart2.DataTipTemplate.DataTipRows(2).Label= '';
%chart.DataTipTemplate.DataTipRows(2).Value='';
댓글 수: 2
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!