MathGroup Archive 2010

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

Search the Archive

Re: Dynamic plot + real data set

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107088] Re: [mg107041] Dynamic plot + real data set
  • From: Patrick Scheibe <pscheibe at trm.uni-leipzig.de>
  • Date: Tue, 2 Feb 2010 03:29:52 -0500 (EST)
  • References: <201002011112.GAA22616@smc.vnet.net>

Hi,

use the Show inside your Dynamic:

data = RandomReal[{-1, 1}, {20, 2}];
Manipulate[
 Show[{
   Plot[Sin[a x], {x, -1, 1}],
   ListPlot[data]
   }],
 {a, 2, 8}]

Cheers
Patrick

On Mon, 2010-02-01 at 06:12 -0500, Matthew wrote:
> I have a data set {x,y}. I want to plot it on the same graph along
> with a function that I can change with the Dynamic tool.
> 
> I can't seem to use the Show[] command as,
> 
> Show[Dynamic[ Plot[vis1[x]/0.8, {x, 0, 120}, PlotRange -> {0, 1},
> AxesLabel -> {power, Relative Visibility1}]],
>  ListPlot[{{20.5, 0.8035}, {40, 0.7986}, {59.5, 0.7885}, {80.5,
> 0.7842}, {100, 0.7778}, {119, 0.7738}, {140, 0.7695}, {160, 0.7 |
> 605}}, PlotRange -> {0, 1}]]
> 
> Any ideas?
> 
> Thanks!
> 



  • Prev by Date: Combining InterpolatingFunctions
  • Next by Date: Can Mathematica solve this differential equation ?
  • Previous by thread: Dynamic plot + real data set
  • Next by thread: Re: Dynamic plot + real data set