Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11395
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Drawing a Line From One Plot to Another |
| Date | 2012-08-17 08:18 +0000 |
| Message-ID | <k0kunq$6dq$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Drawing a Line From One Plot to Another Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2012-08-17 08:18 +0000
csiph-web