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: [mg107068] Re: [mg107041] Dynamic plot + real data set
  • From: "David Park" <djmpark at comcast.net>
  • Date: Tue, 2 Feb 2010 03:26:14 -0500 (EST)
  • References: <22316618.1265023709151.JavaMail.root@n11>

We would have to know what vis1[x] is.

What do you mean by change with the Dynamic tool? Do you mean drag points
around? Here is an example without Dynamic:

Show[
 Plot[1/2 Sin[x/20] + 1/2, {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}]
 ]  

Now just keep double clicking on the Sin curve (say) until the points show,
and then drag them around.

However, I think you have something more useful in mind. We would have to
know more specifically what that is.


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: Matthew [mailto:m.a.broome at googlemail.com] 

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: Re: A question about a sphere
  • Next by Date: Re: What does & mean?
  • Previous by thread: Re: Dynamic plot + real data set
  • Next by thread: Re: How to combine graphics pimitives and Plot function?