Appending a plot and moving it with the mouse cursor

A script lets a few plots to be chosen and to be dropped in the figure one-by-one using ginput. From the time each plot is chosen until before the mouse is clicked, the new selected plot is not shown on the figure. This makes it very difficult to place many plots correctly in the figure.
Is it possible to append each plot one-by-one to the mouse cursor and show it moving with the mouse cursor until mouse botton is clicked and plot is permanently placed in the figure?

4 Comments

Search FEX for draggable axis. It may return something useful
I found many cool examples. Thank you for suggesting it. But none of the examples in FEX stick the plot to the mouse pointer and hover it wihtout pushing the mouse botton.
Maybe again, see JGraph in Matlab figures and search UndocumentedMatlab.
Thank you. You showed me very useful resources.

Sign in to comment.

Answers (0)

Categories

Asked:

S H
on 12 Apr 2019

Commented:

S H
on 13 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!