Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11395 > unrolled thread
| Started by | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| First post | 2012-08-17 08:18 +0000 |
| Last post | 2012-08-17 08:18 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Drawing a Line From One Plot to Another Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2012-08-17 08:18 +0000
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Date | 2012-08-17 08:18 +0000 |
| Subject | Re: Drawing a Line From One Plot to Another |
| Message-ID | <k0kunq$6dq$1@smc.vnet.net> |
Hello everyone,
Say I have two plots, y=x^2 and y=2x,
aligned vertically using GraphicsColumn.
Their domains are aligned because x runs
from -3 to +3 in both. I'd like to be
able to draw a line from a point in the
top graph to a point in the bottom graph. How can I do that?
Regards,
Gregory
Hi, Gregory,
Here is a minimalistic approach. Try it:
pl1 = Plot[x^2, {x, -3, 3}];
pl2 = Plot[2 x, {x, -3, 3}];
Show[{GraphicsColumn[{pl1, pl2}],
Graphics[{Red, Thick,
Line[{Scaled[{0.6, 0.12}], Scaled[{0.6, 0.64}]}]}]}]
Have fun, Alexei
Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch@iee.lu
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web