Ask Your Question

connecting plots by lines

asked 2017-09-18 08:22:29 -0500

Chris_ gravatar image

There are 2 plots in a graphics_array (e.g. sin and cos). How do I "connect" these plots with connecting lines (e.g. a dashed line at angle=pi)?

edit retag flag offensive close merge delete


Could you please provide a picture (linked from somewhere) of what you try to achieve ?

tmonteil gravatar imagetmonteil ( 2017-09-19 06:00:11 -0500 )edit

i want to show 2 different plots (below each other), like in: and now i want print vertical lines at x=[-pi, 0, pi].

then i want to show the 2 plots next to each other and connect them by horizontal lines at y=[-1,-0.5,0.5,1].

=> reason is to show different function values for same angle in different plots

Chris_ gravatar imageChris_ ( 2017-09-19 12:18:39 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-20 04:40:48 -0500

ndomes gravatar image

My suggestion see

Put both plots together with suitable translation and axes.

edit flag offensive delete link more


I've already had this solution. Additionally I've constructed with that method the unit circle on the left and sin on the right. But it seems really expensive and much too complex to produce so many lines for such a simple requirement... there must be a better solution :)

Chris_ gravatar imageChris_ ( 2017-09-20 12:26:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-09-18 08:21:55 -0500

Seen: 102 times

Last updated: Sep 20