简体   繁体   English

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

[英]How can I hide (make invisible) a single plotted point in GNU Octave?

I use the following function ( drawellipse.m ). 我使用以下函数( drawellipse.m )。 I want to be able to draw the ellipse, but suppress/hide/make invisible the last point in the matrix (rx,ry) 我希望能够绘制椭圆,但是可以抑制/隐藏/使矩阵(rx,ry)的最后一点不可见

# 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))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM