在matlab图例中添加对标记的基本修改比较简单。由以下代码段生成的图例(
hold on h = plot(inf,inf,'ob',inf,inf,'r+'); legend(h,'Data1','Data2');
使用以下代码= legend(h,'Data1','Data2'); set(icons(1),'LineStyle','-
// Set tooltip content to name field如您所见,我必须设置一个自定义省略号属性,因为火狐v76在截断的图例标签上显示€|而不是…。添加适配器:
chart.legend.itemContainers.template.adapter.add("tooltipText", function(text, targ