I have a small plot inlaid on a larger plot. Of course, each plot has its own set of axes. Is there a way to draw a line connecting a point on the first plot with a point on the second plot?
Haven't actually tried to solve that one but it's tied into how the 'position' property of the secondary axes is set compared to the primary and then the difference between the coordinate systems of the canvas and the axes...there's a discussion under the graphics objects section that shows how that's all intertwined...
Good luck, if somebody else doesn't solve it first, I'll try to get back later on after meetings...
@Kelly Kearney : This code is not working and I am not able to reproduce the results given by you. The smaller axes is hidden behind the bigger one. How to put it on front. Thanks.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
dpb (view profile)
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/411320-how-to-draw-a-line-between-two-points-on-different-axes#comment_591412
Image Analyst (view profile)
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/411320-how-to-draw-a-line-between-two-points-on-different-axes#comment_591448
Sign in to comment.