简体   繁体   中英

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

I use the following function ( drawellipse.m ). I want to be able to draw the ellipse, but suppress/hide/make invisible the last point in the matrix (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))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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