Switching x and y axes in a plot
- To: mathgroup at smc.vnet.net
- Subject: [mg41510] Switching x and y axes in a plot
- From: Gregory Lypny <gregory.lypny at videotron.ca>
- Date: Fri, 23 May 2003 03:29:25 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello everyone, I'm new to Mathematica, so I hope you'll forgive my first couple of naive questions. I've used Plot to graph a parabola as follows: Plot[ax^2 - 2bx + c, {x, xMin, xMax}]. Is there any way to plot the function so that y appears on the horizontal axis and x on the vertical? (I realize the parabola part is uninteresting; it's actually the solution to a standard problem in financial economics involving the minimization of investment portfolio risk for a given expected return.) Another plot-related question, if I may: do all plots require the specification of a domain as {x, xMin, xMax}? For example, how would I create a scatter plot of experimental data where I have a long two-column list or matrix consisting of x and y observations where the data determine the domain and range? Sincerely, Gregory Gregory Lypny Associate Professor Concordia University ___________________ "Better for us if you don't understand." The Tragically Hip http://pareto.concordia.ca