八度:如何在drawRect中更改线条的颜色和宽度 [英] Octave : How to change line color and width in drawRect
本文介绍了八度:如何在drawRect中更改线条的颜色和宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
:-)大家.
是否可以在八度中更改函数 drawRect 的线条颜色和宽度?
Is there any way to change the line color and width of function drawRect in Octave ?
根据其引用,没有要设置的属性值对此功能.
According to its reference, there's no property-value pair to set in this function.
谢谢.
推荐答案
drawRect
函数不接受属性值对,但是会返回图形句柄,您可以在其中设置任何属性:
The drawRect
function does not accept a property-value pair, but it does return a graphics handle from where you can set any property:
r = drawRect (x, y, w, h);
set (r, "color", [1 0 0]); # set to red (RGB triplets)
set (r, "linewidth", 5);
Use get (r)
to see a list of all properties, or read the manual section graphics object properties.
这篇关于八度:如何在drawRect中更改线条的颜色和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文