Data Tips - Labels and Text size

3 次查看(过去 30 天)
Josh McNamara
Josh McNamara 2020-8-17
评论: Benjamin 2023-2-24
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 个评论
Walter Roberson
Walter Roberson 2020-8-18
I do not see a definition for chart2 ?
Benjamin
Benjamin 2023-2-24
Did you find a solution ? i have the same problem :(.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by