如何在GNU Octave中隐藏(隐藏)单个绘制点?

时间:2015-04-05 07:36:15

标签: plot octave invisible

我使用以下函数(drawellipse.m)。我希望能够绘制椭圆,但是抑制/隐藏/使矩阵中的最后一个点不可见(rx,ry)

1 个答案:

答案 0 :(得分:0)

# simulate your drawellipse
plot(1:5, "-ro")
# get handle of line object
h = findobj (gcf, "type", "line")
# remove last point from xdata
set (h, "xdata", get(h, "xdata")(1:end-1))