MathGroup Archive 1997

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

Search the Archive

Re: Showing Plot and ListPlots on the same graph


dude at unr.edu
[mg8976] Showing Plot and ListPlots on the same graph

> I have been able to plot data with ListPlot and a function
> with Plot but I would like to put them on the same graph.

dude:
use Show:

plt1 =ListPlot[ {{0,1},{3,0},{5,1}}, PlotJoined->True,
		PlotStyle -> Hue[0]]

plt2= Plot[Sin[x],{x,0,7}, PlotStyle -> Hue[.7]]

Show[plt1,plt2]

Allan Hayes
hay at haystack.demon.co.uk
http://www.haystack.demon.co.uk/training.html
voice:+44 (0)116 2714198
fax: +44 (0)116 2718642
Leicester,  UK


  • Prev by Date: Palette Problems
  • Next by Date: Re: TensorRank
  • Previous by thread: Re: Showing Plot and ListPlots on the same graph
  • Next by thread: Re: Showing Plot and ListPlots on the same graph