Re: Mathematical Modeling Problem II
- To: mathgroup at smc.vnet.net
- Subject: [mg59644] Re: Mathematical Modeling Problem II
- From: Paul Abbott <paul at physics.uwa.edu.au>
- Date: Mon, 15 Aug 2005 06:50:35 -0400 (EDT)
- Organization: The University of Western Australia
- References: <ddf5m4$onl$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <ddf5m4$onl$1 at smc.vnet.net>, Sycamor at gmail.com wrote:
> Hello. I am a high school student working on a summer research project
> at a local university. My task is to model a certain physical
> situations using Mathematica. I am still ignorant of the programs
> profound, and not-so-profound secrets. At the moment, I find myself
> unable to plot a vertical line. How does one create a vertical line
> and show that line on the same axes as a set of data points? Ideally,
> I would also like to keep the vertical scale the same.
>
> In my quest for a vertical line, I have tried using very steep curves,
> and using the ImplicitPlot package. I expect I am missing something
> very obvious.
There have been many suggestions -- but none have suggested using
ParametricPlot:
data = {{1,2},{2,3},{2,4}};
ParametricPlot[{1, y}, {y, 0, 4}, Epilog -> Point /@ data];
ParametricPlot is the obvious solution for plotting relations.
Cheers,
Paul
--
Paul Abbott Phone: +61 8 6488 2734
School of Physics, M013 Fax: +61 8 6488 1014
The University of Western Australia (CRICOS Provider No 00126G)
AUSTRALIA http://physics.uwa.edu.au/~paul
http://InternationalMathematicaSymposium.org/IMS2005/