RE: Show command.
- To: mathgroup at smc.vnet.net
- Subject: [mg45385] RE: [mg45379] Show command.
- From: "tgarza01 at prodigy.net.mx" <tgarza01 at prodigy.net.mx>
- Date: Mon, 5 Jan 2004 03:51:00 -0500 (EST)
- Reply-to: tgarza01 at prodigy.net.mx
- Sender: owner-wri-mathgroup at wolfram.com
You typed pl = Plot[a, {x, -2, 9}] with the letter "l" in pl instead of the
number "1". Correct and try again.
Tomas Garza
Mexico City
Original Message:
-----------------
From: gtsavdar at auth.gr (George)
To: mathgroup at smc.vnet.net
Subject: [mg45385] [mg45379] Show command.
I enter the following:
----------------------------------------------------------------------------
-
dat = {{1, 3}, {2, 12}, {3, 22}, {4, 35}, {5, 70}, {6, 95}, {7, 119}};
p = ListPlot[dat, PlotStyle -> PointSize[0.02]]
a = Fit[dat, x, x]
b = Fit[dat, {1, x, x^2}, x]
pl = Plot[a, {x, -2, 9}]
p2 = Plot[b, {x, -2, 9}]
Show[p,p1,p2]
----------------------------------------------------------------------------
-
Fit finds the requested things, Listplot and the 2 Plot draw the plots,
BUT Show[p,p1,p2] don't show anything. Well actually it shows the error
message:
Show::gcomb: An error was encountered in combining the graphics objects
in Show[p1, .Graphics]. More...
Why Show[p,p1,p2] don't show p,p1,p2?
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .