I am quite new to Julia. I am currently working on a small program, which requires me to plot a dot and remove it later (there will only be one dot at every time). I am using the the Makie package to visualize everything, but I haven't found a way to delete a dot, which has been drawn by scatter (or scatter!). The code should look something like this:
scene = scatter([0],[0], color="blue", markersize=10)
pop!(scene.scatter) #command that removes the dot drawn by the above scatter
I found this thread (Julia Plotting: delete and modify existing lines) which shows one way to delete the last drawn thing using pop!, but this code doesn't run (I get an errormessage if I add scene as an argument of scatter!(scene,...)
).
Thanks for any help