MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Show command.


Change "pl = Plot[a, {x, -2, 9}]"  to  "p1 = Plot[a, {x, -2, 9}]" (i.e.  
"ell" to "one").  The error message point to it directly.


On Jan 4, 2004, at 4:56 AM, George wrote:

> 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?
>


  • Prev by Date: Arbitrary-precision numbers in patterns
  • Next by Date: RE: Show command.
  • Previous by thread: Show command.
  • Next by thread: RE: Show command.