文档帮助中心文档
类:matlab.graphics.chartcontainer.mixin.Legend包:matlab.graphics.chartcontainer.mixin
为legend mixin子类获取legend对象
乐金显示器= getLegend (obj)
乐金显示器= getLegend (obj)控件继承的图表对象的图例matlab.graphics.chartcontainer.mixin.Legend类。
乐金显示器= getLegend (obj)
乐金显示器
obj
matlab.graphics.chartcontainer.mixin.Legend
全部展开
对象继承的类的matlab.graphics.chartcontainer.mixin.Legend类。
传说
传说对象。
受保护的
真正的
要了解方法的属性,请参见方法属性.
创建一个设置方法。在该方法中,调用getLegend获取图例对象乐金显示器.然后更改文本颜色、框边颜色和框线宽度。
设置
getLegend
classdefConfigLegendChart < matlab.graphics.chartcontainer.ChartContainer &...matlab.graphics.chartcontainer.mixin.Legend属性%……结束方法(访问=保护)函数设置(obj)使图例可见obj。LegendVisible =“上”;获取图例并设置文本颜色、边颜色和线宽乐金显示器= getLegend (obj);乐金显示器。输入TextColor =[。3。3。3);乐金显示器。EdgeColor =[。8。8。8);乐金显示器。线宽= 7;结束函数更新(obj)%……结束结束结束
matlab.graphics.chartcontainer.ChartContainer
你点击了一个与MATLAB命令相对应的链接:
在MATLAB命令窗口中输入命令来运行该命令。Web浏览器不支持MATLAB命令。金宝app
选择一个网站,在可用的地方获得翻译的内容,并看到当地的活动和提供。根据您的地理位置,我们建议您选择:.
你也可以从以下列表中选择一个网站:
请选择中国网站(中文或英文),以获得最佳网站性能。MathWorks的其他国家站点并没有针对您所在位置的访问进行优化。
与当地办事处联系